UNPKG

vue-tianditu2

Version:
26 lines (25 loc) 846 B
import { defineComponent as n, onBeforeMount as i, onUnmounted as m } from "vue"; import { useMapRoot as a } from "../../use/mapRoot.mjs"; import { useEvent as s } from "../../use/event.mjs"; import { EVENTS as c, PROPS as u, NATIVE_EVENTS as f } from "./use/const.mjs"; import { useInit as p } from "./use/init.mjs"; import { useWatch as l } from "./use/watch.mjs"; const M = n({ name: "TdtCloudMarkerCollection", props: u, emits: c, setup(r, { emit: t }) { return i(async () => { m(() => { o == null || o.clear(), o && (e == null || e.removeOverLay(o)); }); const e = await a(), o = p(r); e.addOverLay(o), s({ events: f, emit: t, instance: o }), l({ props: r, instance: o }), t("init", o); }), () => { }; } }); export { M as TdtCloudMarkerCollection }; //# sourceMappingURL=index.mjs.map