Map.onChangeZoom

Stay organized with collections Save and categorize content based on your preferences.

Registers a callback that's fired when the map zoom level changes.

Returns an ID which can be passed to unlisten() to unregister the callback.

UsageReturns
Map.onChangeZoom(callback)String
ArgumentTypeDetails
callbackFunctionThe callback to fire when the map zoom change. The callback is passed two parameters: the new zoom level and the map widget itself.