[OpenLayers-Users] Changing the Layer displayed by a WMS
David William Bitner
bitner at gyttja.org
Fri Jul 21 15:33:28 CDT 2006
Are you trying to implement some kind of scale dependent rendering?
On 7/21/06, Arnd Wippermann <arnd.wippermann at web.de> 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?.
>
> Mit freundlichen Grüssen
>
> Arnd Wippermann
> Testappl.: http://gis.ibbeck.de/Pinguinale/samba.html
>
>
> -----Ursprüngliche Nachricht-----
> Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
> Auftrag von Christopher Schmidt
> Gesendet: Freitag, 21. Juli 2006 18:56
> An: Jon Blower
> Cc: users at openlayers.org
> Betreff: Re: [OpenLayers-Users] Changing the Layer displayed by a WMS
>
> On Fri, Jul 21, 2006 at 05:38:26PM +0100, Jon Blower wrote:
> > Hi all,
> >
> > I've just started playing with OpenLayers and I think it's very
> promising.
> > I'm using it mainly to display maps from a WMS. I'd like to know how
> > I can dynamically change the WMS Layer that is being displayed. For
> > example, I've created a WMS layer like this:
> >
> > var my_wms = new OpenLayers.Layer.WMS1_3("My WMS",
> "http://path.to/mywms?",
> > {layers: 'somelayer'});
>
> Jon --
>
> This seems like the kind of problem that the 'changeParams' call is well
> suited for -- there is an example of this in
> http://openlayers.org/dev/examples/wmst.html -- essentially, you would do
> my_wms.changeParams({layers:'newlayer'});
>
> This would change the params, and reinitialize the image array with the
> new
> images.
>
> Does this match your needs?
>
> --
> Christopher Schmidt
> Web Developer
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://mailman-viper.python-hosting.com/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://mailman-viper.python-hosting.com/listinfo/users
>
--
************************************
David William Bitner
bitner at gyttja.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-viper.python-hosting.com/pipermail/users/attachments/20060721/f0f9ce34/attachment.html
More information about the Users
mailing list