Class YMKMapObjectCollection

A collection of map objects that can hold any set of MapObject items, including nested collections.

Instance Methods

- addCircleWithCircle:strokeColor:strokeWidth:fillColor:

Creates a new circle with the specified style and adds it to the current collection.

- addCollection

Creates a new nested collection of map objects.

- addColoredPolyline

Creates a new colored polyline with an empty geometry and adds it to the current collection.

- addColoredPolylineWithPolyline:

Creates a new colored polyline and adds it to the current collection.

- addEmptyPlacemarkWithPoint:

Creates a new empty placemark and adds it to the current collection.

- addListenerWithCollectionListener:

Adds a listener to track notifications of changes to the collection.

- addPlacemarkWithPoint:

Creates a new placemark with the default icon and style, and adds it to the current collection.

- addPlacemarkWithPoint:animatedImage:style:

Creates a new animated placemark and adds it to the current collection.

- addPlacemarkWithPoint:image:

Creates a new placemark with the default style and adds it to the current collection.

- addPlacemarkWithPoint:image:style:

Creates a new placemark and adds it to the current collection.

- addPolygonWithPolygon:

Creates a new polygon and adds it to the current collection.

- addPolylineWithPolyline:

Creates a new polyline and adds it to the current collection.

- clear

Removes all map objects from the collection.

- removeWithMapObject:

Removes the given map object from the collection.

- setConflictResolvingModeWithMode:

Sets conflict resolving mode for placemarks in this collection.

- traverseWithMapObjectVisitor:

Traverses through the collection with a visitor object.

- addCircleWithCircle:strokeColor:strokeWidth:fillColor:

Creates a new circle with the specified style and adds it to the current collection.

- addCollection

Creates a new nested collection of map objects.

- addColoredPolyline

Creates a new colored polyline with an empty geometry and adds it to the current collection.

- addColoredPolylineWithPolyline:

Creates a new colored polyline and adds it to the current collection.

- addEmptyPlacemarkWithPoint:

Creates a new empty placemark and adds it to the current collection.

- addListenerWithCollectionListener:

Adds a listener to track notifications of changes to the collection.

- addPlacemarkWithPoint:

Creates a new placemark with the default icon and style, and adds it to the current collection.

- addPlacemarkWithPoint:animatedImage:style:

Creates a new animated placemark and adds it to the current collection.

- addPlacemarkWithPoint:image:

Creates a new placemark with the default style and adds it to the current collection.

- addPlacemarkWithPoint:image:style:

Creates a new placemark and adds it to the current collection.

- addPolygonWithPolygon:

Creates a new polygon and adds it to the current collection.

- addPolylineWithPolyline:

Creates a new polyline and adds it to the current collection.

- clear

Removes all map objects from the collection.

- removeWithMapObject:

Removes the given map object from the collection.

- setConflictResolvingModeWithMode:

Sets conflict resolving mode for placemarks in this collection.

- traverseWithMapObjectVisitor:

Traverses through the collection with a visitor object.

Method Detail

-addCircleWithCircle:strokeColor:strokeWidth:fillColor:

- (nullable YMKCircleMapObject *)addCircleWithCircle:(nonnull YMKCircle *)circle
                                         strokeColor:(nonnull UIColor *)strokeColor
                                         strokeWidth:(float)strokeWidth
                                           fillColor:(nonnull UIColor *)fillColor 

Creates a new circle with the specified style and adds it to the current collection.

-addCollection

- (nullable YMKMapObjectCollection *)addCollection

Creates a new nested collection of map objects.

-addColoredPolyline

- (nullable YMKColoredPolylineMapObject *)addColoredPolyline

Creates a new colored polyline with an empty geometry and adds it to the current collection.

-addColoredPolylineWithPolyline:

- (nullable YMKColoredPolylineMapObject *)addColoredPolylineWithPolyline:(nonnull YMKPolyline *)polyline 

Creates a new colored polyline and adds it to the current collection.

-addEmptyPlacemarkWithPoint:

- (nullable YMKPlacemarkMapObject *)addEmptyPlacemarkWithPoint:(nonnull YMKPoint *)point 

Creates a new empty placemark and adds it to the current collection.

-addListenerWithCollectionListener:

- (void)addListenerWithCollectionListener:(nullable id< YMKMapObjectCollectionListener >)collectionListener 

Adds a listener to track notifications of changes to the collection.

-addPlacemarkWithPoint:

- (nullable YMKPlacemarkMapObject *)addPlacemarkWithPoint:(nonnull YMKPoint *)point 

Creates a new placemark with the default icon and style, and adds it to the current collection.

-addPlacemarkWithPoint:animatedImage:style:

- (nullable YMKPlacemarkMapObject *)addPlacemarkWithPoint:(nonnull YMKPoint *)point
                                            animatedImage:(nullable id< YRTAnimatedImageProvider >)animatedImage
                                                    style:(nonnull YMKIconStyle *)style 

Creates a new animated placemark and adds it to the current collection.

-addPlacemarkWithPoint:image:

- (nullable YMKPlacemarkMapObject *)addPlacemarkWithPoint:(nonnull YMKPoint *)point
                                                    image:(nullable UIImage *)image 

Creates a new placemark with the default style and adds it to the current collection.

-addPlacemarkWithPoint:image:style:

- (nullable YMKPlacemarkMapObject *)addPlacemarkWithPoint:(nonnull YMKPoint *)point
                                                    image:(nullable UIImage *)image
                                                    style:(nonnull YMKIconStyle *)style 

Creates a new placemark and adds it to the current collection.

-addPolygonWithPolygon:

- (nullable YMKPolygonMapObject *)addPolygonWithPolygon:(nonnull YMKPolygon *)polygon 

Creates a new polygon and adds it to the current collection.

-addPolylineWithPolyline:

- (nullable YMKPolylineMapObject *)addPolylineWithPolyline:(nonnull YMKPolyline *)polyline 

Creates a new polyline and adds it to the current collection.

-clear

- (void)clear

Removes all map objects from the collection.

-removeWithMapObject:

- (void)removeWithMapObject:(nullable YMKMapObject *)mapObject 

Removes the given map object from the collection.

-setConflictResolvingModeWithMode:

- (void)setConflictResolvingModeWithMode:(YMKConflictResolvingMode)mode 

Sets conflict resolving mode for placemarks in this collection.

Child collections inherit value of this property, but can override it. Default value is Ignore.

-traverseWithMapObjectVisitor:

- (void)traverseWithMapObjectVisitor:(nullable id< YMKMapObjectVisitor >)mapObjectVisitor 

Traverses through the collection with a visitor object.

Used for iteration over map objects in the collection.