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.
16 lines
376 B
16 lines
376 B
import { toLngLat } from "../../../utils";
|
|
import { Props } from "./";
|
|
|
|
export function useInit(props: Props) {
|
|
const { center, radius, color, weight, opacity, lineStyle, fillColor, fillOpacity } = props;
|
|
const instance = new T.Circle(toLngLat(center), radius, {
|
|
color,
|
|
weight,
|
|
opacity,
|
|
lineStyle,
|
|
fillColor,
|
|
fillOpacity
|
|
});
|
|
return instance;
|
|
}
|