[OpenLayers-Users] Re: WMS object

Jan Henrik Øverland janhenrik.overland at gmail.com
Mon Aug 8 10:20:44 EDT 2011


Thanks, this makes sense as well.

On Mon, Aug 8, 2011 at 15:07, Andreas Hocevar <ahocevar at opengeo.org> wrote:

> On Aug 8, 2011, at 13:30 , Jan Henrik Øverland wrote:
>
> > On Mon, Aug 8, 2011 at 13:25, Andreas Hocevar <ahocevar at opengeo.org>
> wrote:
> > On Aug 8, 2011, at 12:45 , Julien Cigar wrote:
> >
> > > Hi,
> > >
> > > Normally the only thing to do is to use an "SRS" parameter, something
> like:
> >
> > This is a common pitfall when using OpenLayers. The SRS parameter will be
> ignored. Always. Instead, WMS layers will be requested in the SRS used by
> your base layer.
> >
> > Thanks, I see, and it makes perfectly sense when the WMS layer is an
> overlay. But this also goes when the WMS layer has isBaseLayer: true?
>
> In this case, you have to configure the projection layer option (i.e. in
> the 4th constructor argument), or the layer will take the projection from
> the map configuration. If none is configured, it will be EPSG:4326.
>
> Andreas.
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110808/e4e8325b/attachment.html


More information about the Users mailing list