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

Christopher Schmidt crschmidt at metacarta.com
Mon May 19 19:31:31 EDT 2008


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



More information about the Users mailing list