[OpenLayers-Users] changes in wms between 2.4 and 2.6

Joanne Cook j.cook at oxfordarch.co.uk
Tue May 20 04:07:16 EDT 2008


Hi Chris,

Thanks- that was a real lightbulb moment- I had been quite confused about the different options/parameters etc and you really cleared it up for me!

Jo

-----------------------------------------------------
Joanne Cook
Information Systems Coordinator
Oxford Archaeology (North)
01524 880212
http://thehumanjourney.net

----- Original Message -----
From: "Christopher Schmidt" <crschmidt at metacarta.com>
To: "Joanne Cook" <j.cook at oxfordarch.co.uk>
Cc: users at openlayers.org
Sent: 20 May 2008 00:31:31 o'clock (GMT) Europe/London
Subject: Re: [OpenLayers-Users] changes in wms between 2.4 and 2.6

On Mon, May 19, 2008 at 05:45:22PM +0100, Joanne Cook wrote:
> Hi Chris,
> 
> Sorry for the delay in responding to this- but it didn't make any difference:
> http://mapdata.thehumanjourney.net/index_26.html
> now includes the reproject option. 

No, it now includes a reproject 'parameter', but no reproject option.
Parameters are the third argument to a Layer.WMS: Options are the
fourth. (Your isBaseLayer is in the wrong place as well.)  I've tested
setting the reproject option in the right place; it seems to work on
your map. 

> So, to make sure I understand- do I now need to use the spherical mercator option when overlaying on virtual earth, google et al even if all my data is served in EPSG 4326?

If your data is served in EPSG:4326, you are not correctly overlaying
Google Maps or Virtual Earth. If this bothers you, you will need to
change to using Spherical Mercator. (The difference at a country the
size of the UK is less significant than if you're at a country hte size
of the US, or if you're starting at the whole world.)

You've already worked around this problem (by setting a maxResolutino on
your layer), but you should be aware that if you care about data
actually being in the same place, or if you care about caching, you'll
need to be using sphericalMercator. 

Regards,
-- 
Christopher Schmidt
MetaCarta




------
Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.




More information about the Users mailing list