vue-leaflet/Vue2Leaflet

Cannot read properties of undefined (reading '_leaflet_pos')

ErikasMasaitis opened this issue · 1 comments

Hello, im having issue with Cannot read properties of undefined (reading '_leaflet_pos'). Im using two components and two maps. One map enabled when window width is > 800, another one when < 800.
When resizing window i always get this error:

app.js:58878 Uncaught TypeError: Cannot read properties of undefined (reading '_leaflet_pos')
at getPosition (app.js:58878)

is there any way to prevent this?

Versions

"leaflet": "^1.7.1",
"vue2-leaflet": "^2.7.1"
"vue": "^2.6.14",

stale commented

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.