UNPKG

vue-tianditu2

Version:
24 lines (23 loc) 805 B
import { defineComponent as r, onBeforeMount as m, onUnmounted as i } from "vue"; import { useMapRoot as a } 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 x = r({ name: "TdtPolyline", props: p, emits: f, setup(e, { emit: n }) { return m(async () => { i(() => t && (o == null ? void 0 : o.removeOverLay(t))); const o = await a(), t = c(e); o.addOverLay(t), s({ events: u, emit: n, instance: t, extData: e.extData }), d({ props: e, instance: t }), n("init", t); }), () => { }; } }); export { x as TdtPolyline }; //# sourceMappingURL=index.mjs.map