onZoom

abstract fun onZoom(listener: (event: ZoomEvent) -> Unit)

Add a listener on a ZoomEvent.

Parameters

listener

A lambda that takes a ZoomEvent and will be called each time a ZoomEvent occurs.