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 f, PROPS as u, NATIVE_EVENTS as c } from "./use/const.mjs";
import { useInit as T } from "./use/init.mjs";
import { useWatch as d } from "./use/watch.mjs";
const V = m({
name: "TdtTilelayerWms",
props: u,
emits: f,
setup(t, { emit: n, attrs: r }) {
return i(async () => {
s(() => e && (o == null ? void 0 : o.removeLayer(e)));
const o = await a(), e = T(t, r);
o.addLayer(e), p({ events: c, emit: n, instance: e }), d({ props: t, instance: e }), n("init", e);
}), () => {
};
}
});
export {
V as TdtTilelayerWms
};
//# sourceMappingURL=index.mjs.map