Loading src/components/LPolygon.vue +8 −1 Original line number Diff line number Diff line <script> import { onMounted, ref, inject } from "vue"; import { h, onMounted, ref, inject } from "vue"; import { remapEvents, propsBinder } from "../utils.js"; import { props, setup as polygonSetup } from "../functions/polygon"; Loading @@ -11,6 +11,7 @@ export default { props, setup(props, context) { const leafletRef = ref({}); const ready = ref(false); const addLayer = inject("addLayer"); const { options, methods } = polygonSetup(props, leafletRef, context); Loading @@ -32,9 +33,15 @@ export default { ...methods, leafletObject: leafletRef.value, }); ready.value = true; }); return { ready }; }, render() { if (this.ready && this.$slots.default) { return h("div", { style: { display: "none" } }, this.$slots.default()); } return null; }, }; Loading src/components/LRectangle.vue +8 −1 Original line number Diff line number Diff line <script> import { onMounted, ref, inject } from "vue"; import { h, onMounted, ref, inject } from "vue"; import { remapEvents, propsBinder } from "../utils.js"; import { props, setup as rectangleSetup } from "../functions/rectangle"; Loading @@ -11,6 +11,7 @@ export default { props, setup(props, context) { const leafletRef = ref({}); const ready = ref(false); const addLayer = inject("addLayer"); const { options, methods } = rectangleSetup(props, leafletRef, context); Loading @@ -36,9 +37,15 @@ export default { ...methods, leafletObject: leafletRef.value, }); ready.value = true; }); return { ready }; }, render() { if (this.ready && this.$slots.default) { return h("div", { style: { display: "none" } }, this.$slots.default()); } return null; }, }; Loading Loading
src/components/LPolygon.vue +8 −1 Original line number Diff line number Diff line <script> import { onMounted, ref, inject } from "vue"; import { h, onMounted, ref, inject } from "vue"; import { remapEvents, propsBinder } from "../utils.js"; import { props, setup as polygonSetup } from "../functions/polygon"; Loading @@ -11,6 +11,7 @@ export default { props, setup(props, context) { const leafletRef = ref({}); const ready = ref(false); const addLayer = inject("addLayer"); const { options, methods } = polygonSetup(props, leafletRef, context); Loading @@ -32,9 +33,15 @@ export default { ...methods, leafletObject: leafletRef.value, }); ready.value = true; }); return { ready }; }, render() { if (this.ready && this.$slots.default) { return h("div", { style: { display: "none" } }, this.$slots.default()); } return null; }, }; Loading
src/components/LRectangle.vue +8 −1 Original line number Diff line number Diff line <script> import { onMounted, ref, inject } from "vue"; import { h, onMounted, ref, inject } from "vue"; import { remapEvents, propsBinder } from "../utils.js"; import { props, setup as rectangleSetup } from "../functions/rectangle"; Loading @@ -11,6 +11,7 @@ export default { props, setup(props, context) { const leafletRef = ref({}); const ready = ref(false); const addLayer = inject("addLayer"); const { options, methods } = rectangleSetup(props, leafletRef, context); Loading @@ -36,9 +37,15 @@ export default { ...methods, leafletObject: leafletRef.value, }); ready.value = true; }); return { ready }; }, render() { if (this.ready && this.$slots.default) { return h("div", { style: { display: "none" } }, this.$slots.default()); } return null; }, }; Loading