measureDependentWidth property

Map<MapMeasure, double> measureDependentWidth

The measureDependentWidth that defines the route and maneuver arrows width. It is a dictionary that has keys that are MapMeasures and values that are width in pixels at this MapMeasures. This route and maneuver arrows width is multiplied by a pixel_scale MapViewBase.pixelScale before being rendered. The maneuver arrow width is additionally multiplied by a factor configurable with VisualNavigator.maneuverArrowWidthFactor; which by default equals one. The function defined by a dictionary is linearly interpolated between each successive pair of data points. For keys below the lowest MapMeasure, its corresponding value width is used. For keys above the highest MapMeasure, its corresponding value width is used. Only MapMeasure of sdk.mapview.MapMeasure.Kind.ZOOM_LEVEL type are supported. MapMeasure of other unsupported types will be ignored. measureDependentWidth with a single entry is equivalent to use of the constant width value of this single entry for all MapMeasures. Empty measureDependentWidth is ignored and existing dictionary of width is maintained. The width values should be positive. Dictionary entries with width values less than or equal to 0 are ignored. If route and maneuver arrows were not configured with this property, then measureDependentWidth contains predefined values chosen to be optimal for different route classes.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process. Gets the MapMeasure dependent polyline and maneuver arrow width in pixels.

Implementation

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

The measureDependentWidth that defines the route and maneuver arrows width. It is a dictionary that has keys that are MapMeasures and values that are width in pixels at this MapMeasures. This route and maneuver arrows width is multiplied by a pixel_scale MapViewBase.pixelScale before being rendered. The maneuver arrow width is additionally multiplied by a factor configurable with VisualNavigator.maneuverArrowWidthFactor; which by default equals one. The function defined by a dictionary is linearly interpolated between each successive pair of data points. For keys below the lowest MapMeasure, its corresponding value width is used. For keys above the highest MapMeasure, its corresponding value width is used. Only MapMeasure of sdk.mapview.MapMeasure.Kind.ZOOM_LEVEL type are supported. MapMeasure of other unsupported types will be ignored. measureDependentWidth with a single entry is equivalent to use of the constant width value of this single entry for all MapMeasures. Empty measureDependentWidth is ignored and existing dictionary of width is maintained. The width values should be positive. Dictionary entries with width values less than or equal to 0 are ignored. If route and maneuver arrows were not configured with this property, then measureDependentWidth contains predefined values chosen to be optimal for different route classes.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process. Sets the MapMeasure dependent route and maneuver arrows width in pixels.

Implementation

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