AWFMultiShapeOverlay

Objective-C

@protocol AWFMultiShapeOverlay <NSObject>

Swift

protocol AWFMultiShapeOverlay : NSObjectProtocol

The AWFMultiShapeOverlay protocol defines the properties and methods required by an overlay instance that renders multiple types of elements into a single overlay renderer, such as both polygon and polylines.

  • Initializes and returns an overlay instance with the specified arrays of polygons and polylines.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithPolygons:(nullable NSArray<id<AWFPolygon>> *)polygons
               polylines:(nullable NSArray<id<AWFPolyline>> *)polylines;

    Parameters

    polygons

    The polygons to render

    polylines

    The polylines to render

    Return Value

    An instantiated overlay instance

  • Sets the polygons and polylines to be rendered with the overlay.

    Declaration

    Objective-C

    - (void)updatePolygons:(nullable NSArray<id<AWFPolygon>> *)polygons
                 polylines:(nullable NSArray<id<AWFPolyline>> *)polylines;

    Parameters

    polygons

    The polygons to render

    polylines

    The polylines to render