YMKMapObjectVisitor

protocol YMKMapObjectVisitor : NSObjectProtocol

Used to traverse over the children of the MapObjectCollection.

Summary

Instance methods

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

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

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

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

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

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

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

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

Instance methods

onPlacemarkVisited(withPlacemark:)

func onPlacemarkVisited(withPlacemark placemark: YMKPlacemarkMapObject)

Called when a placemark is visited.


onPolylineVisited(withPolyline:)

func onPolylineVisited(withPolyline polyline: YMKPolylineMapObject)

Called when a polyline is visited.


onPolygonVisited(withPolygon:)

func onPolygonVisited(withPolygon polygon: YMKPolygonMapObject)

Called when a polygon is visited.


onCircleVisited(withCircle:)

func onCircleVisited(withCircle circle: YMKCircleMapObject)

Called when a circle is visited.


onCollectionVisitStart(with:)

func onCollectionVisitStart(with collection: YMKMapObjectCollection) -> Bool

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


onCollectionVisitEnd(with:)

func onCollectionVisitEnd(with collection: YMKMapObjectCollection)

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


onClusterizedCollectionVisitStart(with:)

func onClusterizedCollectionVisitStart(with collection: YMKClusterizedPlacemarkCollection) -> Bool

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


onClusterizedCollectionVisitEnd(with:)

func onClusterizedCollectionVisitEnd(with collection: YMKClusterizedPlacemarkCollection)

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


Предыдущая
Следующая