AWFPolygonStyle

Objective-C

@interface AWFPolygonStyle : AWFMapItemStyle

Swift

class AWFPolygonStyle : AWFMapItemStyle

An AWFPolygonStyle object provides the style specifications to be used for a polygon’s representation on a map.

  • Returns the default polygon style for the specified layer type. This may return a single instance of AWFPolygonStyle, or if there are multiple styles associated with a layer type this method will return an instance of AWFGroupedStyle.

    Declaration

    Objective-C

    + (nullable id)defaultStyleForLayerType:(nonnull AWFMapLayer)layerType;

    Swift

    class func defaultStyle(forLayerType layerType: AWFMapLayer) -> Any?

    Parameters

    layerType

    The layer type to return the default style for

    Return Value

    Either an instance of AWFPolygonStyle or AWFGroupedStyle