MapMeasureDependentRenderSize.withSingleSize constructor
- RenderSizeUnit sizeUnit,
- double size
Constructs a MapMeasureDependentRenderSize from single size value which is constant across all map measures.
The given size value is stored in MapMeasureDependentRenderSize.sizes map at key 0 and MapMeasureDependentRenderSize.measureKind is set to MapMeasureKind.zoomLevel.
-
sizeUnitThe unit used for the value insize. -
sizeThe size independent of map measure. Must not be negative.
Throws MapMeasureDependentRenderSizeInstantiationException. Instantiation error if size is negative.
Implementation
factory MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit sizeUnit, double size) => $prototype.withSingleSize(sizeUnit, size);