{"version":3,"file":"init.mjs","sources":["../../../../../packages/overlay/marker/use/init.ts"],"sourcesContent":["import { toLngLat } from \"~/utils/converter\";\r\nimport type { Props } from \"./\";\r\n\r\nexport function useInit(props: Props) {\r\n  const { /**icon,*/ draggable, title, zIndexOffset, opacity, position } = props;\r\n  return new T.Marker(toLngLat(position), {\r\n    /** icon: icon ? toIcon(icon) : undefined,*/\r\n    draggable,\r\n    title,\r\n    zIndexOffset,\r\n    opacity\r\n  });\r\n}\r\n"],"names":["useInit","props","draggable","title","zIndexOffset","opacity","position","toLngLat"],"mappings":";AAGO,SAASA,EAAQC,GAAc;AAC9B,QAAA;AAAA;AAAA,IAAa,WAAAC;AAAA,IAAW,OAAAC;AAAA,IAAO,cAAAC;AAAA,IAAc,SAAAC;AAAA,IAAS,UAAAC;AAAA,EAAA,IAAaL;AACzE,SAAO,IAAI,EAAE,OAAOM,EAASD,CAAQ,GAAG;AAAA;AAAA,IAEtC,WAAAJ;AAAA,IACA,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,SAAAC;AAAA,EAAA,CACD;AACH;"}