AnnotatedFeature

public struct AnnotatedFeature : Equatable

Represents either a GeoJSON geometry or an annotated layer feature.

  • Represents a specific feature rendered on the layer.

    Declaration

    Swift

    public struct LayerFeature : Equatable
  • GeoJSON geometry.

    Declaration

    Swift

    public var geometry: Geometry?
  • Layer feature.

    Declaration

    Swift

    public var layerFeature: LayerFeature?
  • Creates Annotated feature from layer feature.

    Declaration

    Swift

    public static func layerFeature(layerId: String, featureId: String? = nil) -> AnnotatedFeature

    Parameters

    layerId

    Layer identifier which renders the feature.

    featureId

    Feature identifier. If not specified, the annotation will appear on any feature from that layer.

  • Creates Annotated feature from GeoJSON geometry.

    Declaration

    Swift

    public static func geometry(_ geometry: GeometryConvertible) -> AnnotatedFeature