Vue2Leaflet icon indicating copy to clipboard operation
Vue2Leaflet copied to clipboard

mapObject not accessible in L.GeoJson in IE11

Open sstenn opened this issue 6 years ago • 4 comments

Description

I'm making a map with a line that changes after click. All works fine in Chrome, Safari, Firefox and Edge, but not in IE11.

The LGeoJson is stored as ref="line"

<l-geo-json ref="line" :geojson="line" :options-style="options"></l-geo-json>

In my method I want to access the line like this.$refs.line.getBounds(), the ref exists but has no .mapObject or getBounds() in IE11.

sstenn avatar Apr 17 '19 09:04 sstenn

@sstenn thank you for the issue, could you provide a reproduction codesandbox ? it would help me a lot

nmezzopera avatar Apr 17 '19 09:04 nmezzopera

@sstenn thank you for the issue, could you provide a reproduction codesandbox ? it would help me a lot

https://codesandbox.io/embed/qlljl3voj9

@DonNicoJs

sstenn avatar Apr 17 '19 12:04 sstenn

@sstenn Thank you, very much I will look into it during the next days ( yay easter is here and I have free time )

nmezzopera avatar Apr 18 '19 07:04 nmezzopera

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 01 '20 12:01 stale[bot]