Map.onChangeZoom

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
callbackFunction

The callback to fire when the map zoom change. The callback is passed two parameters: the new zoom level and the map widget itself.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!