UNPKG

vue-tianditu2

Version:
24 lines (23 loc) 801 B
import { defineComponent as r, onBeforeMount as m, onUnmounted as a } from "vue"; import { useMapRoot as i } from "../../use/mapRoot.mjs"; import { useEvent as s } from "../../use/event.mjs"; import { EVENTS as f, PROPS as p, NATIVE_EVENTS as u } from "./use/const.mjs"; import { useInit as c } from "./use/init.mjs"; import { useWatch as d } from "./use/watch.mjs"; const N = r({ name: "TdtMarker", props: p, emits: f, setup(o, { emit: n }) { return m(async () => { a(() => t && (e == null ? void 0 : e.removeOverLay(t))); const e = await i(), t = c(o); e.addOverLay(t), s({ events: u, emit: n, instance: t, extData: o.extData }), d({ props: o, instance: t }), n("init", t); }), () => { }; } }); export { N as TdtMarker }; //# sourceMappingURL=index.mjs.map