RenderedFeatureActions

public protocol RenderedFeatureActions

Rendered Feature Actions protocol.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Gets rendered features at the given coordinate.

    A “feature” is any geometric object (a circle, a marker, a polygon, a line, etc.) visible on the screen. It can be added both by vector tiles and the API. Features consist of geometry (type with coordinates) and properties.

    What properties are included depends on the data source. Features that come from vector tiles include all the properties that were defined for them in the tiles. They can also include geometry data if the option is included in the query. Features that originate from the API have empty properties.

    Features in query results are returned in the order of the layers they belong to, starting at the top of the layer stack.

    Declaration

    Swift

    func mapFeatures(coordinate: CLLocationCoordinate2D) -> [RenderedFeature]

    Parameters

    coordinate

    The coordinate at which to search for features.

    Return Value

    The rendered features at the given coordinate.

  • Gets rendered features at the given coordinate.

    A “feature” is any geometric object (a circle, a marker, a polygon, a line, etc.) visible on the screen. It can be added both by vector tiles and the API. Features consist of geometry (type with coordinates) and properties.

    What properties are included depends on the data source. Features that come from vector tiles include all the properties that were defined for them in the tiles. They can also include geometry data if the option is included in the query. Features that originate from the API have empty properties.

    The query space can be limited by query options. Query options also allow query results to be filtered.

    Features in query results are returned in the order of the layers they belong to, starting at the top of the layer stack.

    Declaration

    Swift

    func mapFeatures(coordinate: CLLocationCoordinate2D, options: RenderedFeatureQueryOptions) -> [RenderedFeature]

    Return Value

    The rendered features at the given coordinate.

  • Gets rendered features at the given coordinate region.

    A “feature” is any geometric object (a circle, a marker, a polygon, a line, etc.) visible on the screen. It can be added both by vector tiles and the API. Features consist of geometry (type with coordinates) and properties.

    What properties are included depends on the data source. Features that come from vector tiles include all the properties that were defined for them in the tiles. They can also include geometry data if the option is included in the query. Features that originate from the API have empty properties.

    Features in query results are returned in the order of the layers they belong to, starting at the top of the layer stack.

    Declaration

    Swift

    func mapFeatures(coordinateBounds: CoordinateBounds) -> [RenderedFeature]

    Parameters

    coordinateBounds

    The coordinate region in which to search for features.

    Return Value

    The rendered features at the given coordinate region.

  • Gets rendered features at the given coordinate region.

    A “feature” is any geometric object (a circle, a marker, a polygon, a line, etc.) visible on the screen. It can be added both by vector tiles and the API. Features consist of geometry (type with coordinates) and properties.

    What properties are included depends on the data source. Features that come from vector tiles include all the properties that were defined for them in the tiles. They can also include geometry data if the option is included in the query. Features that originate from the API have empty properties.

    The query space can be limited by query options. Query options also allow query results to be filtered.

    Features in query results are returned in the order of the layers they belong to, starting at the top of the layer stack.

    Declaration

    Swift

    func mapFeatures(coordinateBounds: CoordinateBounds, options: RenderedFeatureQueryOptions) -> [RenderedFeature]

    Return Value

    The rendered features at the given coordinate region.