Loading CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Playground now works again after upgrade to TypeScript. - Fixed LMap event-handlers. Original issue here:(https://github.com/vue-leaflet/vue-leaflet/issues/287) ### Changed Loading src/components/LMap.vue +2 −2 Original line number Diff line number Diff line Loading @@ -156,6 +156,7 @@ const mapProps = { }; export default defineComponent({ inheritAttrs: false, emits: ["ready", "update:zoom", "update:center", "update:bounds"], props: mapProps, setup(props, context) { Loading Loading @@ -251,7 +252,6 @@ export default defineComponent({ Icon, latLngBounds, latLng, DomEvent, stamp, }: typeof L = props.useGlobalLeaflet ? WINDOW_OR_GLOBAL.L Loading Loading @@ -387,7 +387,7 @@ export default defineComponent({ const listeners: any = remapEvents(context.attrs); // TODO: proper typing bindEventHandlers(blueprint.leafletRef, eventHandlers); DomEvent.on(blueprint.leafletRef.getContainer(), listeners); bindEventHandlers(blueprint.leafletRef, listeners); blueprint.ready = true; nextTick(() => context.emit("ready", blueprint.leafletRef)); }); Loading Loading
CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Playground now works again after upgrade to TypeScript. - Fixed LMap event-handlers. Original issue here:(https://github.com/vue-leaflet/vue-leaflet/issues/287) ### Changed Loading
src/components/LMap.vue +2 −2 Original line number Diff line number Diff line Loading @@ -156,6 +156,7 @@ const mapProps = { }; export default defineComponent({ inheritAttrs: false, emits: ["ready", "update:zoom", "update:center", "update:bounds"], props: mapProps, setup(props, context) { Loading Loading @@ -251,7 +252,6 @@ export default defineComponent({ Icon, latLngBounds, latLng, DomEvent, stamp, }: typeof L = props.useGlobalLeaflet ? WINDOW_OR_GLOBAL.L Loading Loading @@ -387,7 +387,7 @@ export default defineComponent({ const listeners: any = remapEvents(context.attrs); // TODO: proper typing bindEventHandlers(blueprint.leafletRef, eventHandlers); DomEvent.on(blueprint.leafletRef.getContainer(), listeners); bindEventHandlers(blueprint.leafletRef, listeners); blueprint.ready = true; nextTick(() => context.emit("ready", blueprint.leafletRef)); }); Loading