MMKMapCameraListener

protocol MMKMapCameraListener : NSObjectProtocol

Listens for updates to the camera position.

Summary

Instance methods

func onCameraPositionChanged(with map: MMKMap,
                       cameraPosition: MMKCameraPosition,
                   cameraUpdateReason: MMKCameraUpdateReason,
                             finished: Bool)
Triggered when the camera position changed

Instance methods

onCameraPositionChanged(with:cameraPosition:cameraUpdateReason:finished:)

func onCameraPositionChanged(with map: MMKMap,
                       cameraPosition: MMKCameraPosition,
                   cameraUpdateReason: MMKCameraUpdateReason,
                             finished: Bool)

Triggered when the camera position changed.

Parameters

map

Event source.

cameraPosition

Current camera position.

cameraUpdateReason

The reason of camera update.

finished

True if the camera finished moving, false otherwise. If a movement is cancelled then cameraUpdateReason represents initiator of cancellation.