Reputation: 827
I'd like to run some code when the zoom level changes on a map but I'm having a hard time figuring out how to listen for the change.
I've tried variations of the following without any luck:
map.addEventListener("zoomLevel",function(){...
map.addObserver("zoomLevel",function(){...
Upvotes: 1
Views: 2732