ui.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
this: ui.mapui.MapThe ui.Map instance.
callbackFunctionThe callback to fire when the map zoom change. The callback is passed two parameters: the new zoom level and the map widget itself.