YMKGeoObjectCollection

@interface YMKGeoObjectCollection : NSObject

A collection of geo objects. Allows you to group geo objects for adding them to the map, setting options, etc. Collections are geo objects too.

Summary

Class methods

+ (nonnull YMKGeoObjectCollection *)geoObjectCollectionWithBoundingBox:(nullable YMKBoundingBox *)boundingBox
                                                     metadataContainer:(nonnull YRTTypeDictionary<id<YMKBaseMetadata>> *)metadataContainer
                                                              children:(nonnull NSArray<YMKGeoObjectCollectionItem *> *)children;

Properties

@property (nonatomic, readonly, nullable) YMKBoundingBox *boundingBox;
The bounds around the collection of objects

@property (nonatomic, readonly, nonnull)
    YRTTypeDictionary<id<YMKBaseMetadata>> *metadataContainer;

The metadata for the objects

@property (nonatomic, readonly, nonnull)
    NSArray<YMKGeoObjectCollectionItem *> *children;

Undocumented

Class methods

geoObjectCollectionWithBoundingBox:metadataContainer:children:

+ (nonnull YMKGeoObjectCollection *)geoObjectCollectionWithBoundingBox:(nullable YMKBoundingBox *)boundingBox
                                                     metadataContainer:(nonnull YRTTypeDictionary<id<YMKBaseMetadata>> *)metadataContainer
                                                              children:(nonnull NSArray<YMKGeoObjectCollectionItem *> *)children;


Properties

boundingBox

@property (nonatomic, readonly, nullable) YMKBoundingBox *boundingBox;

The bounds around the collection of objects.

Optional field, can be nil.


metadataContainer

@property (nonatomic, readonly, nonnull)
    YRTTypeDictionary<id<YMKBaseMetadata>> *metadataContainer;

The metadata for the objects.


children

@property (nonatomic, readonly, nonnull)
    NSArray<YMKGeoObjectCollectionItem *> *children;

Undocumented