[Users] Layer not zooming out
Robert Buckley
robertdbuckley at yahoo.com
Mon Nov 21 15:20:34 CET 2011
Hi,
I have a layer ("layer_topo") whose visibility is set to false unless zoom level 15 is reached. This works, but after the layer is loaded, it doesn't zoom out again.
Do I have to do something else to make the layer dynamic?
thanks for any help,
Rob
http://maps.zgb.de/www/eeg/lws.html
map.events.on({"zoomend": function (e) {
if (this.getZoom() > 14) {
layer_Flurbloeke.setVisibility(true);
layer_topo.setVisibility(true);
}
else {
layer_Flurbloeke.setVisibility(false);
var coords = prncenter();
// alert(test);
Ext.getCmp('coords').value=coords;
}
}//end function (e)
}); //end map.events.on
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20111121/f66faa67/attachment.htm
More information about the Users
mailing list