MapKit Mobile SDK

MMKMapObjectVisitor

protocol MMKMapObjectVisitor : NSObjectProtocol

Used to traverse over the children of the MapObjectCollection.

Summary

Instance methods

func onPlacemarkVisited(withPlacemark placemark: MMKPlacemarkMapObject)
Called when a placemark is visited

func onPolylineVisited(withPolyline polyline: MMKPolylineMapObject)
Called when a polyline is visited

func onPolygonVisited(withPolygon polygon: MMKPolygonMapObject)
Called when a polygon is visited

func onCircleVisited(withCircle circle: MMKCircleMapObject)
Called when a circle is visited

func onCollectionVisitStart(with collection: MMKMapObjectCollection) -> Bool
Called for every child collection

func onCollectionVisitEnd(with collection: MMKMapObjectCollection)
Called for visited collections only

func onClusterizedCollectionVisitStart(with collection: MMKClusterizedPlacemarkCollection) -> Bool
Called for clusterized placemark collection

func onClusterizedCollectionVisitEnd(with collection: MMKClusterizedPlacemarkCollection)
Called for visited clusterized placemark collections only

Instance methods

onPlacemarkVisited(withPlacemark:)

func onPlacemarkVisited(withPlacemark placemark: MMKPlacemarkMapObject)

Called when a placemark is visited.


onPolylineVisited(withPolyline:)

func onPolylineVisited(withPolyline polyline: MMKPolylineMapObject)

Called when a polyline is visited.


onPolygonVisited(withPolygon:)

func onPolygonVisited(withPolygon polygon: MMKPolygonMapObject)

Called when a polygon is visited.


onCircleVisited(withCircle:)

func onCircleVisited(withCircle circle: MMKCircleMapObject)

Called when a circle is visited.


onCollectionVisitStart(with:)

func onCollectionVisitStart(with collection: MMKMapObjectCollection) -> Bool

Called for every child collection. The collection is ignored if this method returns false.


onCollectionVisitEnd(with:)

func onCollectionVisitEnd(with collection: MMKMapObjectCollection)

Called for visited collections only. If an exception occurred during the visit, the method might be skipped.


onClusterizedCollectionVisitStart(with:)

func onClusterizedCollectionVisitStart(with collection: MMKClusterizedPlacemarkCollection) -> Bool

Called for clusterized placemark collection. The collection is ignored if this method returns false.


onClusterizedCollectionVisitEnd(with:)

func onClusterizedCollectionVisitEnd(with collection: MMKClusterizedPlacemarkCollection)

Called for visited clusterized placemark collections only. If an exception occurred during the visit, the method might be skipped.