vue-tianditu2
Version:
24 lines (23 loc) • 791 B
JavaScript
import { defineComponent as r, onBeforeMount as i, onUnmounted as m } from "vue";
import { useMapRoot as s } from "../../use/mapRoot.mjs";
import { useEvent as a } from "../../use/event.mjs";
import { EVENTS as p, 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 S = r({
name: "TdtGridlineLayer",
props: d,
emits: p,
setup(t, { emit: n }) {
return i(async () => {
m(() => e && (o == null ? void 0 : o.removeLayer(e)));
const o = await s(), e = u(t);
o.addLayer(e), a({ events: f, emit: n, instance: e }), c({ props: t, instance: e }), n("init", e);
}), () => {
};
}
});
export {
S as TdtGridlineLayer
};
//# sourceMappingURL=index.mjs.map