[OpenLayers-Dev] Projection-error on WMS-service

Christopher Schmidt crschmidt at metacarta.com
Wed Jul 18 08:55:59 EDT 2007


On Wed, Jul 18, 2007 at 08:22:49AM +0200, Michael ?stling wrote:
> Hi,
> I have tried diiferent solutions but still get some problems.
> 
> I have added BBOX and SRS to the constructor. I can see that OpenLayers
> reads this info. 

Michael:

This is not the right place to add these options. As Bart demonstrated,
they should be added as options on the Map Cnostructor (the second
argument), not as parameters to the WMS Layer.

I leave Bart's original posting here so that you can read these and try
again.


> map = new OpenLayers.Map( $('imgMapContainer'), { controls: [],
> 'projection': 'EPSG:28992', 'units':'m', 'maxExtent': new
> OpenLayers.Bounds(-231847.29064, 193706.896552, 521847.29064, 721293.103448)
> , 'maxResolution':'auto'}); 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list