MapLayerVisibilityRange constructor

const MapLayerVisibilityRange(
  1. double minimumZoomLevel,
  2. double maximumZoomLevel
)

Creates a new instance.

  • minimumZoomLevel Minimum zoom level on which the layer will be visible. The value must be greater than or equal to the MapCameraLimits.MIN_ZOOM_LEVEL.
  • maximumZoomLevel Minimum zoom level from which the layer will not be visible. The value must be less than or equal to the MapCameraLimits.MAX_ZOOM_LEVEL. Note that the map layer is not visible at the maximum zoom level.

Implementation

const MapLayerVisibilityRange(this.minimumZoomLevel, this.maximumZoomLevel);