Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Hey guys I am using geoserver to host my WMS layers and I am using gmaps base layers in Openlayers. Below I have attempted to use scale dependent rendering of the base layer without any luck. What I am trying to do is once the user zooms past a certain level, Google's hybrid map will turn off and Google's aerial will turn on.....With the code I have now it will turn on and off but it tends to warp the base map or flicker. Not sure whats going on.

            /*map.events.on({ "zoomend": function (e) {
            if (this.getZoom() > 16) {
              gmap.setVisibility(false);
              ghyb.setVisibility(true);
            }
            else {
              gmap.setVisibility(false);
              ghyb.setVisibility(true);
            }
          }
        });*/
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.