Skip to content

Commit

Permalink
Document layer zoom limits (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
morvagergely committed May 12, 2022
1 parent 71c4de4 commit 1f96937
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions lib/src/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ class MapboxMapController extends ChangeNotifier {
/// If [enableInteraction] is set the layer is considered for touch or drag
/// events. [sourceLayer] is used to selected a specific source layer from
/// Vector source.
/// [minzoom] is the minimum (inclusive) zoom level at which the layer is
/// visible.
/// [maxzoom] is the maximum (exclusive) zoom level at which the layer is
/// visible.
/// [filter] determines which features should be rendered in the layer.
/// Filters are written as [expressions].
///
Expand Down Expand Up @@ -376,6 +380,10 @@ class MapboxMapController extends ChangeNotifier {
/// If [enableInteraction] is set the layer is considered for touch or drag
/// events. [sourceLayer] is used to selected a specific source layer from
/// Vector source.
/// [minzoom] is the minimum (inclusive) zoom level at which the layer is
/// visible.
/// [maxzoom] is the maximum (exclusive) zoom level at which the layer is
/// visible.
/// [filter] determines which features should be rendered in the layer.
/// Filters are written as [expressions].
///
Expand Down Expand Up @@ -412,6 +420,10 @@ class MapboxMapController extends ChangeNotifier {
/// If [enableInteraction] is set the layer is considered for touch or drag
/// events. [sourceLayer] is used to selected a specific source layer from
/// Vector source.
/// [minzoom] is the minimum (inclusive) zoom level at which the layer is
/// visible.
/// [maxzoom] is the maximum (exclusive) zoom level at which the layer is
/// visible.
/// [filter] determines which features should be rendered in the layer.
/// Filters are written as [expressions].
///
Expand Down Expand Up @@ -448,6 +460,10 @@ class MapboxMapController extends ChangeNotifier {
/// If [enableInteraction] is set the layer is considered for touch or drag
/// events. [sourceLayer] is used to selected a specific source layer from
/// Vector source.
/// [minzoom] is the minimum (inclusive) zoom level at which the layer is
/// visible.
/// [maxzoom] is the maximum (exclusive) zoom level at which the layer is
/// visible.
/// [filter] determines which features should be rendered in the layer.
/// Filters are written as [expressions].
///
Expand Down Expand Up @@ -482,7 +498,11 @@ class MapboxMapController extends ChangeNotifier {
///
/// Setting [belowLayerId] adds the new layer below the given id.
/// [sourceLayer] is used to selected a specific source layer from
/// Raster source
/// Raster source.
/// [minzoom] is the minimum (inclusive) zoom level at which the layer is
/// visible.
/// [maxzoom] is the maximum (exclusive) zoom level at which the layer is
/// visible.
Future<void> addRasterLayer(
String sourceId, String layerId, RasterLayerProperties properties,
{String? belowLayerId,
Expand All @@ -509,7 +529,11 @@ class MapboxMapController extends ChangeNotifier {
///
/// Setting [belowLayerId] adds the new layer below the given id.
/// [sourceLayer] is used to selected a specific source layer from
/// Raster source
/// Raster source.
/// [minzoom] is the minimum (inclusive) zoom level at which the layer is
/// visible.
/// [maxzoom] is the maximum (exclusive) zoom level at which the layer is
/// visible.
Future<void> addHillshadeLayer(
String sourceId, String layerId, HillshadeLayerProperties properties,
{String? belowLayerId,
Expand Down Expand Up @@ -1129,6 +1153,10 @@ class MapboxMapController extends ChangeNotifier {
/// [HillshadeLayerProperties].
/// [sourceLayer] is used to selected a specific source layer from Vector
/// source.
/// [minzoom] is the minimum (inclusive) zoom level at which the layer is
/// visible.
/// [maxzoom] is the maximum (exclusive) zoom level at which the layer is
/// visible.
/// [filter] determines which features should be rendered in the layer.
/// Filters are written as [expressions].
/// [filter] is not supported by RasterLayer and HillshadeLayer.
Expand Down

0 comments on commit 1f96937

Please sign in to comment.