[OpenLayers-Users] Google doesn't line up with other WMS
cranio at quipo.it
Sat Jan 12 11:19:13 EST 2008
Yves, on the contrary, you helped me really a lot with your suggestion on the
The point is, I had to do the following steps:
- open spericalmercator layers (based on spherical-mercator.html example)
- put ESPG:900913 entry in espg file
- mark my map as 4326 and the particular layer i'm working on with its
correct epsg (was wrog before)
Now everything lines up correctly, there's an offset of about 20-30m in
latitude but it's not
important for my project for now.
Thanks for all the help!
Yves Jacolin wrote:
> Did you check that this EPSG code exist in your epsg file?
> Did you adapt your code to the new projection ('SphericalMercator')?
> Sorry, I can not help you so much.
> Le samedi 12 janvier 2008 14:14, Cranio a écrit :
>> Thanks Yves but still doesn't work.
>> When sphericalMercator is true, I get wrong centering (but this may be
>> to the mismatched proj'n) but I lose also all the drag capabilities, and
>> zoom seems to zoom in the wrong area.
>> Also, my mapfile has this header:
>> If i change it to epsg:900913 (or whatever google uses, I don't remember
>> my map simply won't shop up, with non error.
>> Any ideas?
>> Yves Jacolin wrote:
>> > Le samedi 12 janvier 2008 12:20, Cranio a Ã©crit :
>> > [cut]
>> >> So, I guess, I have projection issues, but I am lost between how to
>> >> define:
>> >> - the Mapserver Mapfile projection (now served as epsg:26592)
>> >> - the single layers in mapfiles projections (now undeclared)
>> >> - the Openlayers map projection (I believe that, now in my test
>> >> programs, it is default epsg:4632)
>> >> to have Google or Yahoo WMS maps correctly line up with mine.
>> >> Any help appreciated and sorry for the newbie question :)
>> > Hi,
>> > You need to use 'SphericalMercator' parameter in your map option and in
>> > your
>> > google options, See http://trac.openlayers.org/wiki/SphericalMercator
>> > correct information ;)
>> > Y.
>> > --
>> > Yves Jacolin
>> > -------------
>> > http://yjacolin.gloobe.org
>> > http://softlibre.gloobe.org
>> > _______________________________________________
>> > Users mailing list
>> > Users at openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
> Yves Jacolin
> Users mailing list
> Users at openlayers.org
View this message in context: http://www.nabble.com/Google-doesn%27t-line-up-with-other-WMS-tp14772076p14775373.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users