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

Michael Östling michael.ostling at metagis.se
Wed Jul 18 12:40:07 EDT 2007


Ok,
I was reading it to fast.
Now it works, great thanks.

/Michael

-----Ursprungligt meddelande-----
Från: Christopher Schmidt [mailto:crschmidt at metacarta.com] 
Skickat: den 18 juli 2007 14:56
Till: Michael ?stling
Kopia: 'Bart van den Eijnden (OSGIS)'; dev at openlayers.org
Ämne: Re: [OpenLayers-Dev] Projection-error on WMS-service

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



-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.8 - Release Date: 2007-07-16 00:00






More information about the Dev mailing list