1

I'm looking for a way to use multiple WMS on my application. If a user zooms in/out another baselayer is supposed to be selected. As for now, I've come across the following:

map.events.on({ "zoomend": function (e) {
    if (this.getZoom() > 10) {
      mapnik.setVisibility(false);
      layertest.setVisibility(true);
    }
    else {
      layertest.setVisibility(false);
      mapnik.setVisibility(true);
         }
                                        }
            });

The problem I still encounter is really bad performance. Well it works, but is there maybe a faster way of doing this?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338

0 Answers0