[OpenLayers-Users] Changing the Layer displayed by a WMS
Christopher Schmidt
crschmidt at crschmidt.net
Fri Jul 21 15:44:04 CDT 2006
On Fri, Jul 21, 2006 at 10:26:51PM +0200, Arnd Wippermann wrote:
> Hello,
>
> I'm using changeParams and it goes well. But is it possible, to call
> changeParams when the map via zoom changes. Something like an zoom-event
> listener?.
Yep -- the zoomend event fires after a zoom event. You can do something
like:
map.events.register("zoomend", map, updateLayers);
'map' in this case becomes the 'this' variable inside the 'updateLayers'
function.
--
Christopher Schmidt
Web Developer
More information about the Users
mailing list