Closed MadeInShineA closed 5 months ago
This is intended behavior; a property doesn't automatically behave like a v-model (getter & setter).
You have to get the zoom via the @zoom_changed
event. It doesn't output anything (again, intended behavior), so you have to get the zoom with getZoom
and likely set the zoom with setZoom
instead of just changing the property.
I would like for the map to set the zoom level to 8 when a marker is clicked and that the zoom level is < 6
To do so I implemented this function
And I call it whenever a marker is clicked
However, it works as expected the first time I click on a marker but then, eventho I zoom and dezoom, the zoom value seems to be static
My conclusions are that the zoom value isn't changed when the map is zoomed or dezoomed but does change the map zoom if changed programmatically