MapMeasureDependentRenderSize.withSingleSize constructor

MapMeasureDependentRenderSize.withSingleSize(
  1. RenderSizeUnit sizeUnit,
  2. 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.

  • sizeUnit The unit used for the value in size.

  • size The 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);