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