From 3dc4e546bf96a3a7fc230153c2ab05b2fbcd0676 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 17 Feb 2020 16:47:55 +0000 Subject: [PATCH 01/10] add minZoom and maxZoom options --- src/ol/layer/BaseImage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/layer/BaseImage.js b/src/ol/layer/BaseImage.js index 59b971c657..676d7f3154 100644 --- a/src/ol/layer/BaseImage.js +++ b/src/ol/layer/BaseImage.js @@ -19,6 +19,10 @@ import Layer from './Layer.js'; * visible. * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will * be visible. + * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be + * visible. + * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will + * be visible. * @property {import("../PluggableMap.js").default} [map] Sets the layer as overlay on a map. The map will not manage * this layer in its layers collection, and the layer will be rendered on top. This is useful for * temporary layers. The standard way to add a layer to a map and have it managed by the map is to From fbaa4da153b9414df1ea85d66ad458234fdbfaa0 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 17 Feb 2020 16:49:47 +0000 Subject: [PATCH 02/10] add minZoom and maxZoom options --- src/ol/layer/BaseTile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/layer/BaseTile.js b/src/ol/layer/BaseTile.js index 3e2f70f8d4..3ac20024fd 100644 --- a/src/ol/layer/BaseTile.js +++ b/src/ol/layer/BaseTile.js @@ -21,6 +21,10 @@ import {assign} from '../obj.js'; * visible. * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will * be visible. + * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be + * visible. + * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will + * be visible. * @property {number} [preload=0] Preload. Load low-resolution tiles up to `preload` levels. `0` * means no preloading. * @property {import("../source/Tile.js").default} [source] Source for this layer. From 265eb5421dea71a4227bca04c80dac40100766fa Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 17 Feb 2020 16:51:08 +0000 Subject: [PATCH 03/10] add minZoom and maxZoom options --- src/ol/layer/BaseVector.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/layer/BaseVector.js b/src/ol/layer/BaseVector.js index 7201c448b1..5f160faf57 100644 --- a/src/ol/layer/BaseVector.js +++ b/src/ol/layer/BaseVector.js @@ -21,6 +21,10 @@ import {createDefaultStyle, toFunction as toStyleFunction} from '../style/Style. * visible. * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will * be visible. + * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be + * visible. + * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will + * be visible. * @property {import("../render.js").OrderFunction} [renderOrder] Render order. Function to be used when sorting * features before rendering. By default features are drawn in the order that they are created. Use * `null` to avoid the sort, but get an undefined draw order. From d102f561f964c7e48cb3e87dd447383fd1dc1b0e Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 17 Feb 2020 16:52:12 +0000 Subject: [PATCH 04/10] add minZoom and maxZoom options --- src/ol/layer/Graticule.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/layer/Graticule.js b/src/ol/layer/Graticule.js index 0c5e34f6e7..b0e681926c 100644 --- a/src/ol/layer/Graticule.js +++ b/src/ol/layer/Graticule.js @@ -64,6 +64,10 @@ const INTERVALS = [ * visible. * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will * be visible. + * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be + * visible. + * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will + * be visible. * @property {number} [maxLines=100] The maximum number of meridians and * parallels from the center of the map. The default value of 100 means that at * most 200 meridians and 200 parallels will be displayed. The default value is From 501546bc4407dbb0e9e14c9c43d9b210e264eaaf Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 17 Feb 2020 16:52:59 +0000 Subject: [PATCH 05/10] add minZoom and maxZoom options --- src/ol/layer/Group.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/layer/Group.js b/src/ol/layer/Group.js index f03fe7b7dd..12dff00af2 100644 --- a/src/ol/layer/Group.js +++ b/src/ol/layer/Group.js @@ -33,6 +33,10 @@ import SourceState from '../source/State.js'; * visible. * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will * be visible. + * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be + * visible. + * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will + * be visible. * @property {Array|import("../Collection.js").default} [layers] Child layers. */ From edb94af31473f511133c3c2a2d713f1e78a2e82b Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 17 Feb 2020 16:53:57 +0000 Subject: [PATCH 06/10] add minZoom and maxZoom options --- src/ol/layer/Heatmap.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/layer/Heatmap.js b/src/ol/layer/Heatmap.js index eb7abdf0ad..0d015bf985 100644 --- a/src/ol/layer/Heatmap.js +++ b/src/ol/layer/Heatmap.js @@ -24,6 +24,10 @@ import WebGLPointsLayerRenderer from '../renderer/webgl/PointsLayer.js'; * visible. * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will * be visible. + * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be + * visible. + * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will + * be visible. * @property {Array} [gradient=['#00f', '#0ff', '#0f0', '#ff0', '#f00']] The color gradient * of the heatmap, specified as an array of CSS color strings. * @property {number} [radius=8] Radius size in pixels. From d0e439ee80795f7e0d4e989aa89d7cb64ac0042a Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 17 Feb 2020 16:55:15 +0000 Subject: [PATCH 07/10] add minZoom and maxZoom options --- src/ol/layer/Layer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/layer/Layer.js b/src/ol/layer/Layer.js index 4d3d846845..2f6b2fb0b7 100644 --- a/src/ol/layer/Layer.js +++ b/src/ol/layer/Layer.js @@ -31,6 +31,10 @@ import {assert} from '../asserts.js'; * visible. * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will * be visible. + * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be + * visible. + * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will + * be visible. * @property {import("../source/Source.js").default} [source] Source for this layer. If not provided to the constructor, * the source can be set by calling {@link module:ol/layer/Layer#setSource layer.setSource(source)} after * construction. From c5885cc649efcce6b3ebcf378ac16b2f3f48cc8b Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 17 Feb 2020 16:57:00 +0000 Subject: [PATCH 08/10] add minZoom and maxZoom options --- src/ol/layer/VectorImage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/layer/VectorImage.js b/src/ol/layer/VectorImage.js index b121cc1b83..14b7c7a067 100644 --- a/src/ol/layer/VectorImage.js +++ b/src/ol/layer/VectorImage.js @@ -20,6 +20,10 @@ import CanvasVectorImageLayerRenderer from '../renderer/canvas/VectorImageLayer. * visible. * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will * be visible. + * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be + * visible. + * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will + * be visible. * @property {import("../render.js").OrderFunction} [renderOrder] Render order. Function to be used when sorting * features before rendering. By default features are drawn in the order that they are created. Use * `null` to avoid the sort, but get an undefined draw order. From 4cf093ab757b1be6c1336555b72c035b543f2059 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 17 Feb 2020 16:58:46 +0000 Subject: [PATCH 09/10] add minZoom and maxZoom options --- src/ol/layer/VectorTile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/layer/VectorTile.js b/src/ol/layer/VectorTile.js index a53e377215..8ea764e131 100644 --- a/src/ol/layer/VectorTile.js +++ b/src/ol/layer/VectorTile.js @@ -24,6 +24,10 @@ import {assign} from '../obj.js'; * visible. * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will * be visible. + * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be + * visible. + * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will + * be visible. * @property {import("../render.js").OrderFunction} [renderOrder] Render order. Function to be used when sorting * features before rendering. By default features are drawn in the order that they are created. Use * `null` to avoid the sort, but get an undefined draw order. From fa4fcf3886fd28fcff423370831ff7176f734924 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 17 Feb 2020 16:59:40 +0000 Subject: [PATCH 10/10] add minZoom and maxZoom options --- src/ol/layer/WebGLPoints.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/layer/WebGLPoints.js b/src/ol/layer/WebGLPoints.js index cddb218a54..cdcea572b4 100644 --- a/src/ol/layer/WebGLPoints.js +++ b/src/ol/layer/WebGLPoints.js @@ -23,6 +23,10 @@ import Layer from './Layer.js'; * visible. * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will * be visible. + * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be + * visible. + * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will + * be visible. * @property {import("../source/Vector.js").default} [source] Source. * @property {boolean} [disableHitDetection=false] Setting this to true will provide a slight performance boost, but will * prevent all hit detection on the layer.