V
V
Valeriu Vodnicear2019-05-03 03:26:07
OpenStreetMap
Valeriu Vodnicear, 2019-05-03 03:26:07

Why does leaflet map not load if accordion is closed?

I am using Vuetify accordion and nuxt-leaflet package .
If the accordion is not opened immediately when loading the page, then the map will look like this:
5ccb8a115d370324369128.png
Only a part is visible, and when navigating through other parts of the map, the layer does not load normally.
If, when loading the page, immediately open the step with the map, then the map is displayed normally:
5ccb8a7267450372415791.png
Can someone explain why the loading of the map introduces itself like this? And how to fix it?
Added example https://jsfiddle.net/vodnicear/8a162res/5/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question