All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.js.vendor.openlayers3.examples.min-max-resolution.html Maven / Gradle / Ivy

The newest version!


  
    
    
    
    
    
    
    
    Min/max resolution example
  
  

    

    

Min/max resolution example

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.

minResolution, maxResolution, resolution




© 2015 - 2025 Weber Informatics LLC | Privacy Policy