UNPKG

vue-tianditu2

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