If you add a "regionchanged" listener to a map, and the users zooms, the event is indeed triggered.
But the zoom value is not returned in the parameters, nor does it seems to be possible to get the zoom level, directly from map.region.zoom.
The reason I could use this feature, is for saving the zoom level the user has zoomed to, and restoring it upon app restart.
Here's a sample of the parameters returned by "regionchanged":
Thanks for a great module :)
If you add a "regionchanged" listener to a map, and the users zooms, the event is indeed triggered. But the zoom value is not returned in the parameters, nor does it seems to be possible to get the zoom level, directly from map.region.zoom.
The reason I could use this feature, is for saving the zoom level the user has zoomed to, and restoring it upon app restart.
Here's a sample of the parameters returned by "regionchanged":