measureDependentWidth property

Map<MapMeasure, double> measureDependentWidth

The width of route polylines and maneuver arrows based on MapMeasure values. A dictionary mapping MapMeasure keys to widths values in density-independent pixels (dp).

The width values are linearly interpolated between successive map measure entries. For map measures below the lowest key, the lowest entry's width is used. For map measures above the highest key, the highest entry's width is used.

A dictionary with a single entry produces a constant width for all map measures.

Maneuver arrow widths are scaled by VisualNavigator.maneuverArrowWidthFactor, which defaults to 1.0.

The default dictionary is optimized for different route classes are used.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process. Gets the MapMeasure-dependent route polyline and maneuver arrow line widths in density-independent pixels (dp).

Implementation

Map<MapMeasure, double> get measureDependentWidth;
void measureDependentWidth=(Map<MapMeasure, double> value)

The width of route polylines and maneuver arrows based on MapMeasure values. A dictionary mapping MapMeasure keys to widths values in density-independent pixels (dp).

The width values are linearly interpolated between successive map measure entries. For map measures below the lowest key, the lowest entry's width is used. For map measures above the highest key, the highest entry's width is used.

A dictionary with a single entry produces a constant width for all map measures.

Maneuver arrow widths are scaled by VisualNavigator.maneuverArrowWidthFactor, which defaults to 1.0.

The default dictionary is optimized for different route classes are used.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process. Sets the MapMeasure-dependent route polyline and maneuver arrow line widths in density-independent pixels (dp).

Only MapMeasure values of type MapMeasureKind.zoomLevel are supported. Entries with unsupported measure types are ignored. An empty dictionary is ignored and the current configuration remains unchanged.

Width values must be positive. Entries with widths less than or equal to 0.0 are ignored.

Implementation

set measureDependentWidth(Map<MapMeasure, double> value);