RangeVisualization

public protocol RangeVisualization

Entry point for all methods related to the range visualization. Instances of RangeVisualization are created using RangeVisualizationFactory.create(map:style:). You should call methods on these instances from the main thread only, otherwise an exception can occur. To use a RangeVisualization instance, first provide a Range with the RangeVisualization.display(range:) method. You can then call clear() to remove all the primitives that have been added to the map.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • The active range displayed on the map or nil if no range is being displayed.

    Declaration

    Swift

    var activeRange: Range? { get }
  • Display a reachable [Range] on the map. Previous Range is removed from the map

    Declaration

    Swift

    func display(range: Range)
  • Remove the previous added Range from the map.

    Declaration

    Swift

    func clear()