vue-tianditu2
Version:
24 lines (23 loc) • 803 B
JavaScript
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: "TdtPolygon",
props: p,
emits: f,
setup(e, { emit: n }) {
return m(async () => {
a(() => o && (t == null ? void 0 : t.removeOverLay(o)));
const t = await i(), o = c(e);
t.addOverLay(o), s({ events: u, emit: n, instance: o, extData: e.extData }), d({ props: e, instance: o }), n("init", o);
}), () => {
};
}
});
export {
N as TdtPolygon
};
//# sourceMappingURL=index.mjs.map