MMKMapObjectVisitor

@protocol MMKMapObjectVisitor <NSObject>

Used to traverse over the children of the MapObjectCollection.

Summary

Instance methods

- (void)onPlacemarkVisitedWithPlacemark:
    (nonnull MMKPlacemarkMapObject *)placemark;

Called when a placemark is visited

- (void)onPolylineVisitedWithPolyline:(nonnull MMKPolylineMapObject *)polyline;
Called when a polyline is visited

- (void)onPolygonVisitedWithPolygon:(nonnull MMKPolygonMapObject *)polygon;
Called when a polygon is visited

- (void)onCircleVisitedWithCircle:(nonnull MMKCircleMapObject *)circle;
Called when a circle is visited

- (BOOL)onCollectionVisitStartWithCollection:
    (nonnull MMKMapObjectCollection *)collection;

Called for every child collection

- (void)onCollectionVisitEndWithCollection:
    (nonnull MMKMapObjectCollection *)collection;

Called for visited collections only

- (BOOL)onClusterizedCollectionVisitStartWithCollection:
    (nonnull MMKClusterizedPlacemarkCollection *)collection;

Called for clusterized placemark collection

- (void)onClusterizedCollectionVisitEndWithCollection:
    (nonnull MMKClusterizedPlacemarkCollection *)collection;

Called for visited clusterized placemark collections only

Instance methods

onPlacemarkVisitedWithPlacemark:

- (void)onPlacemarkVisitedWithPlacemark:
    (nonnull MMKPlacemarkMapObject *)placemark;

Called when a placemark is visited.


onPolylineVisitedWithPolyline:

- (void)onPolylineVisitedWithPolyline:(nonnull MMKPolylineMapObject *)polyline;

Called when a polyline is visited.


onPolygonVisitedWithPolygon:

- (void)onPolygonVisitedWithPolygon:(nonnull MMKPolygonMapObject *)polygon;

Called when a polygon is visited.


onCircleVisitedWithCircle:

- (void)onCircleVisitedWithCircle:(nonnull MMKCircleMapObject *)circle;

Called when a circle is visited.


onCollectionVisitStartWithCollection:

- (BOOL)onCollectionVisitStartWithCollection:
    (nonnull MMKMapObjectCollection *)collection;

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


onCollectionVisitEndWithCollection:

- (void)onCollectionVisitEndWithCollection:
    (nonnull MMKMapObjectCollection *)collection;

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


onClusterizedCollectionVisitStartWithCollection:

- (BOOL)onClusterizedCollectionVisitStartWithCollection:
    (nonnull MMKClusterizedPlacemarkCollection *)collection;

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


onClusterizedCollectionVisitEndWithCollection:

- (void)onClusterizedCollectionVisitEndWithCollection:
    (nonnull MMKClusterizedPlacemarkCollection *)collection;

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