You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
297 B

import { toLngLat, toPoint } from "../../../utils";
import { Props } from "./";
export function useInit(props: Props) {
const { position, offset, text } = props;
const instance = new T.Label({
position: toLngLat(position),
offset: toPoint(offset),
text
});
return instance;
}