UNPKG

vue-tianditu2

Version:
15 lines (14 loc) 370 B
import { inject as i } from "vue"; function r() { return new Promise((o) => { const n = i("mapRoot"), e = i("mapEmitter"); n != null && n.value ? o(n == null ? void 0 : n.value) : e == null || e.on("mapInit", f); function f(u) { e == null || e.off("mapInit", f), o(u); } }); } export { r as useMapRoot }; //# sourceMappingURL=mapRoot.mjs.map