measureDependentTailWidth property
The width of the arrow tail in pixels, where the key is a MapMeasure and the value is a tail width in pixels at this MapMeasure. Gets the MapMeasure dependent arrow tail width in pixels.
If tail width was configured without MapMeasure dependency, then measureDependentTailWidth
contains single entry with measure 0 of type MapMeasureKind.zoomLevel and width value
equal to widthInPixels.
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.
Implementation
Map<MapMeasure, double> get measureDependentTailWidth;
The width of the arrow tail in pixels, where the key is a MapMeasure and the value is a tail width in pixels at this MapMeasure. Sets the MapMeasure dependent arrow tail width in pixels.
The width values are linearly interpolated between nearest map entries. Width values for MapMeasure outside the map entries are kept constant, using the value of the largest/smallest key.
Only MapMeasure of MapMeasureKind.zoomLevel type is supported. Other MapMeasure types are unsupported and hence, will be ignored.
Map with a single entry is equivalent to use of the widthInPixels value
in the constructor, so a constant width setting, independent of camera.
Empty input is ignored and existing width is maintained.
The width values should be positive. Map entries with width values less than or equal to 0 are ignored.
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.
Implementation
set measureDependentTailWidth(Map<MapMeasure, double> value);