diff --git a/examples/min-max-resolution.html b/examples/min-max-resolution.html new file mode 100644 index 0000000000..37c8f43314 --- /dev/null +++ b/examples/min-max-resolution.html @@ -0,0 +1,65 @@ + + +
+ + + + + + + +Show/hide layers depending on current view resolution.
++ Zoom in twice: the MapBox layer should hide whereas the OSM layer should be shown. +
++ If you continue to zoom in, you'll see the OSM layer also disappear. +
++ The rendering of the layers are here controlled using minResolution and maxResolution options. +
+See the min-max-resolution.js source to see how this is done.
+