[OpenLayers-Users] GeoExt & OpenLayers

christopher.schmidt at nokia.com christopher.schmidt at nokia.com
Fri Aug 6 09:28:00 EDT 2010


On Aug 6, 2010, at 9:26 AM, ext BMcBride wrote:

> 
> I guess I was taking this literally... 

Oh, this could just be an instance of "I can't read" :) Alternatively, it 
may be an OpenLayers-specific hack (like, hacking the panzoombar or something).
But more likely I just can't read :)

-- Chris

> petrus451 wrote:
>> 
>> I have some OpenLayers code that changes map layers as one zooms in and
>> out.
>> 
> So the question becomes what map layer changes are required on zoom? Do you
> want to set layer visibility? You could set a zoomend map event like this:
> 
> 
> map.events.register('zoomend', this, function() { 
> if (map.getZoom() >=10)
> {
> mylayer.setVisibility(false);
> }
> if (map.getZoom() < 10)
> {
> mylayer.setVisibility(true);
> }
> });
> 
> 
> -----
> Bryan R. McBride, GISP
> http://www.bryanmcbride.com bryanmcbride.com 
> http://geoserving.net/ geoserving.net 
> -- 
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/GeoExt-OpenLayers-tp5380045p5380546.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list