RangeVisualization

Entry point for all methods related to the EV-range visualization add-on.

Instances of RangeVisualization are created using RangeVisualizationFactory.create. 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.dislay method.

The mainStyle attribute can be used to configure the visualization style.

You can then call clear to remove all the primitives that have been added to the map by the add-on.

To support Android configuration changes, create a RangeVisualization instance on the ViewModel and use replaceMap once the Activity/Fragment is recreated.

Important: This is a Public Preview API. It may be changed or removed at any time.

Properties

Link copied to clipboard

The main style used to visualize ranges with the display method.

Functions

Link copied to clipboard
abstract fun clear()

Remove all drawn primitives on the Map.

Link copied to clipboard
abstract fun display(range: Range)

Display reachable ranges.