Loading src/components/LCircle.vue +4 −6 Original line number Diff line number Diff line <script> import { onMounted, ref, inject, nextTick } from "vue"; import { remapEvents, propsBinder } from "../utils.js"; import { remapEvents, propsBinder, optionsMerger } from "../utils.js"; import { props as circleProps, setup as circleSetup, Loading Loading @@ -28,16 +28,14 @@ export default { const { options, methods } = circleSetup(props, leafletRef, context); onMounted(async () => { const { circle, DomEvent, setOptions } = await import( "leaflet/dist/leaflet-src.esm" ); const { circle, DomEvent } = await import("leaflet/dist/leaflet-src.esm"); leafletRef.value = circle(props.latLng, options); leafletRef.value = circle(props.latLng, optionsMerger(options, props)); const listeners = remapEvents(context.attrs); DomEvent.on(leafletRef.value, listeners); propsBinder(methods, leafletRef.value, props, setOptions); propsBinder(methods, leafletRef.value, props); addLayer({ ...props, Loading src/components/LCircleMarker.vue +7 −4 Original line number Diff line number Diff line <script> import { onMounted, ref, inject, nextTick } from "vue"; import { remapEvents, propsBinder } from "../utils.js"; import { remapEvents, propsBinder, optionsMerger } from "../utils.js"; import { props as circleMarkerProps, setup as circleMarkerSetup, Loading Loading @@ -28,16 +28,19 @@ export default { const { options, methods } = circleMarkerSetup(props, leafletRef, context); onMounted(async () => { const { circleMarker, DomEvent, setOptions } = await import( const { circleMarker, DomEvent } = await import( "leaflet/dist/leaflet-src.esm" ); leafletRef.value = circleMarker(props.latLng, options); leafletRef.value = circleMarker( props.latLng, optionsMerger(options, props) ); const listeners = remapEvents(context.attrs); DomEvent.on(leafletRef.value, listeners); propsBinder(methods, leafletRef.value, props, setOptions); propsBinder(methods, leafletRef.value, props); addLayer({ ...props, Loading src/components/LControl.vue +4 −4 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ import { setup as controlSetup, render, } from "../functions/control"; import { propsBinder } from "../utils.js"; import { propsBinder, optionsMerger } from "../utils.js"; export default { name: "LControl", Loading Loading @@ -33,7 +33,7 @@ export default { const registerControl = inject("registerControl"); const { options, methods } = controlSetup(props, leafletRef); onMounted(async () => { const { Control, setOptions, DomEvent } = await import( const { Control, DomEvent } = await import( "leaflet/dist/leaflet-src.esm" ); Loading @@ -43,8 +43,8 @@ export default { }, }); leafletRef.value = new LControl(options); propsBinder(methods, leafletRef.value, props, setOptions); leafletRef.value = new LControl(optionsMerger(options, props)); propsBinder(methods, leafletRef.value, props); registerControl({ leafletObject: leafletRef.value }); if (props.disableClickPropagation) { Loading src/components/LControlAttribution.vue +4 −6 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ import { props as attributionControlProps, setup as attributionControlSetup, } from "../functions/controlAttribution"; import { propsBinder } from "../utils.js"; import { propsBinder, optionsMerger } from "../utils.js"; export default { name: "LControlAttribution", Loading @@ -21,12 +21,10 @@ export default { const registerControl = inject("registerControl"); const { options, methods } = attributionControlSetup(props, leafletRef); onMounted(async () => { const { control, setOptions } = await import( "leaflet/dist/leaflet-src.esm" ); const { control } = await import("leaflet/dist/leaflet-src.esm"); leafletRef.value = control.attribution(options); propsBinder(methods, leafletRef.value, props, setOptions); leafletRef.value = control.attribution(optionsMerger(options, props)); propsBinder(methods, leafletRef.value, props); registerControl({ leafletObject: leafletRef.value }); nextTick(() => context.emit("ready", leafletRef.value)); }); Loading src/components/LControlLayers.vue +8 −6 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ import { props as layerControlProps, setup as layerControlSetup, } from "../functions/controlLayers"; import { propsBinder } from "../utils.js"; import { propsBinder, optionsMerger } from "../utils.js"; export default { name: "LControlLayers", Loading @@ -21,12 +21,14 @@ export default { const registerLayerControl = inject("registerLayerControl"); const { options, methods } = layerControlSetup(props, leafletRef); onMounted(async () => { const { control, setOptions } = await import( "leaflet/dist/leaflet-src.esm" ); const { control } = await import("leaflet/dist/leaflet-src.esm"); leafletRef.value = control.layers(null, null, options); propsBinder(methods, leafletRef.value, props, setOptions); leafletRef.value = control.layers( null, null, optionsMerger(options, props) ); propsBinder(methods, leafletRef.value, props); registerLayerControl({ ...props, Loading Loading
src/components/LCircle.vue +4 −6 Original line number Diff line number Diff line <script> import { onMounted, ref, inject, nextTick } from "vue"; import { remapEvents, propsBinder } from "../utils.js"; import { remapEvents, propsBinder, optionsMerger } from "../utils.js"; import { props as circleProps, setup as circleSetup, Loading Loading @@ -28,16 +28,14 @@ export default { const { options, methods } = circleSetup(props, leafletRef, context); onMounted(async () => { const { circle, DomEvent, setOptions } = await import( "leaflet/dist/leaflet-src.esm" ); const { circle, DomEvent } = await import("leaflet/dist/leaflet-src.esm"); leafletRef.value = circle(props.latLng, options); leafletRef.value = circle(props.latLng, optionsMerger(options, props)); const listeners = remapEvents(context.attrs); DomEvent.on(leafletRef.value, listeners); propsBinder(methods, leafletRef.value, props, setOptions); propsBinder(methods, leafletRef.value, props); addLayer({ ...props, Loading
src/components/LCircleMarker.vue +7 −4 Original line number Diff line number Diff line <script> import { onMounted, ref, inject, nextTick } from "vue"; import { remapEvents, propsBinder } from "../utils.js"; import { remapEvents, propsBinder, optionsMerger } from "../utils.js"; import { props as circleMarkerProps, setup as circleMarkerSetup, Loading Loading @@ -28,16 +28,19 @@ export default { const { options, methods } = circleMarkerSetup(props, leafletRef, context); onMounted(async () => { const { circleMarker, DomEvent, setOptions } = await import( const { circleMarker, DomEvent } = await import( "leaflet/dist/leaflet-src.esm" ); leafletRef.value = circleMarker(props.latLng, options); leafletRef.value = circleMarker( props.latLng, optionsMerger(options, props) ); const listeners = remapEvents(context.attrs); DomEvent.on(leafletRef.value, listeners); propsBinder(methods, leafletRef.value, props, setOptions); propsBinder(methods, leafletRef.value, props); addLayer({ ...props, Loading
src/components/LControl.vue +4 −4 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ import { setup as controlSetup, render, } from "../functions/control"; import { propsBinder } from "../utils.js"; import { propsBinder, optionsMerger } from "../utils.js"; export default { name: "LControl", Loading Loading @@ -33,7 +33,7 @@ export default { const registerControl = inject("registerControl"); const { options, methods } = controlSetup(props, leafletRef); onMounted(async () => { const { Control, setOptions, DomEvent } = await import( const { Control, DomEvent } = await import( "leaflet/dist/leaflet-src.esm" ); Loading @@ -43,8 +43,8 @@ export default { }, }); leafletRef.value = new LControl(options); propsBinder(methods, leafletRef.value, props, setOptions); leafletRef.value = new LControl(optionsMerger(options, props)); propsBinder(methods, leafletRef.value, props); registerControl({ leafletObject: leafletRef.value }); if (props.disableClickPropagation) { Loading
src/components/LControlAttribution.vue +4 −6 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ import { props as attributionControlProps, setup as attributionControlSetup, } from "../functions/controlAttribution"; import { propsBinder } from "../utils.js"; import { propsBinder, optionsMerger } from "../utils.js"; export default { name: "LControlAttribution", Loading @@ -21,12 +21,10 @@ export default { const registerControl = inject("registerControl"); const { options, methods } = attributionControlSetup(props, leafletRef); onMounted(async () => { const { control, setOptions } = await import( "leaflet/dist/leaflet-src.esm" ); const { control } = await import("leaflet/dist/leaflet-src.esm"); leafletRef.value = control.attribution(options); propsBinder(methods, leafletRef.value, props, setOptions); leafletRef.value = control.attribution(optionsMerger(options, props)); propsBinder(methods, leafletRef.value, props); registerControl({ leafletObject: leafletRef.value }); nextTick(() => context.emit("ready", leafletRef.value)); }); Loading
src/components/LControlLayers.vue +8 −6 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ import { props as layerControlProps, setup as layerControlSetup, } from "../functions/controlLayers"; import { propsBinder } from "../utils.js"; import { propsBinder, optionsMerger } from "../utils.js"; export default { name: "LControlLayers", Loading @@ -21,12 +21,14 @@ export default { const registerLayerControl = inject("registerLayerControl"); const { options, methods } = layerControlSetup(props, leafletRef); onMounted(async () => { const { control, setOptions } = await import( "leaflet/dist/leaflet-src.esm" ); const { control } = await import("leaflet/dist/leaflet-src.esm"); leafletRef.value = control.layers(null, null, options); propsBinder(methods, leafletRef.value, props, setOptions); leafletRef.value = control.layers( null, null, optionsMerger(options, props) ); propsBinder(methods, leafletRef.value, props); registerLayerControl({ ...props, Loading