TTGeoJSONMultiPolygon

@interface TTGeoJSONMultiPolygon : TTGeoJSONObject

A collection of Polygons.

  • Creates an instance of MultiPolygon with provided bounding box and polygons.

    Declaration

    Objective-C

    - (instancetype _Nonnull)
        initWithGeoJSONPolygon:(NSArray<TTGeoJSONPolygon *> *_Nonnull)polygons
               withBoundingBox:(TTBoundingBox *_Nullable)boundingBox;

    Swift

    init(geoJSONPolygon polygons: [TTGeoJSONPolygon], with boundingBox: TTBoundingBox?)

    Parameters

    polygons

    polygons the polygons that constitute this MultiPolygon

    boundingBox

    boundingBox a bounding box encompassing all the polygons that constitute this MultiPolygon

    Return Value

    TTGeoJSONMultiPolygon

  • Return NSArray * object of array.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        NSArray<TTGeoJSONPolygon *> *_Nonnull polygons;

    Swift

    var polygons: [TTGeoJSONPolygon] { get }