Protocol YMKMapObjectVisitor

Used to traverse over the children of the MapObjectCollection.

Instance Methods

- onCircleVisitedWithCircle:

Called when a circle is visited.

- onCollectionVisitEndWithCollection:

Called for visited collections only.

- onCollectionVisitStartWithCollection:

Called for every child collection.

- onColoredPolylineVisitedWithPolyline:

Called when a colored polyline is visited.

- onPlacemarkVisitedWithPlacemark:

Called when a placemark is visited.

- onPolygonVisitedWithPolygon:

Called when a polygon is visited.

- onPolylineVisitedWithPolyline:

Called when a polyline is visited.

Method Detail

-onCircleVisitedWithCircle:

- (void)onCircleVisitedWithCircle:(nonnull YMKCircleMapObject *)circle 

Called when a circle is visited.

-onCollectionVisitEndWithCollection:

- (void)onCollectionVisitEndWithCollection:(nonnull YMKMapObjectCollection *)collection 

Called for visited collections only.

If an exception occurred during the visit, the method might be skipped.

-onCollectionVisitStartWithCollection:

- (BOOL)onCollectionVisitStartWithCollection:(nonnull YMKMapObjectCollection *)collection 

Called for every child collection.

The collection is ignored if this method returns false.

-onColoredPolylineVisitedWithPolyline:

- (void)onColoredPolylineVisitedWithPolyline:(nonnull YMKColoredPolylineMapObject *)polyline 

Called when a colored polyline is visited.

-onPlacemarkVisitedWithPlacemark:

- (void)onPlacemarkVisitedWithPlacemark:(nonnull YMKPlacemarkMapObject *)placemark 

Called when a placemark is visited.

-onPolygonVisitedWithPolygon:

- (void)onPolygonVisitedWithPolygon:(nonnull YMKPolygonMapObject *)polygon 

Called when a polygon is visited.

-onPolylineVisitedWithPolyline:

- (void)onPolylineVisitedWithPolyline:(nonnull YMKPolylineMapObject *)polyline 

Called when a polyline is visited.