AWFMultiShapeOverlay

@protocol AWFMultiShapeOverlay <NSObject>

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;

    Swift

    init!(polygons: Any!, polylines: Any!)

    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;

    Swift

    optional func updatePolygons(_ polygons: Any!, polylines: Any!)

    Parameters

    polygons

    The polygons to render

    polylines

    The polylines to render