[OpenLayers-Users] wrong location when load map on googlemap

Arnd Wippermann arnd.wippermann at web.de
Fri Sep 11 13:50:18 EDT 2009


Hi,

Perhaps your polygons of the layer "SDE_Province50" are not in projection
EPSG:900913?
The OpenLayers code should be alright.

Arnd


-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von truongpm
Gesendet: Freitag, 11. September 2009 19:03
An: users at openlayers.org
Betreff: Re: [OpenLayers-Users] wrong location when load map on googlemap




Arnd Wippermann wrote:
> 
> Hi,
> 
> The parameter SRS and BBOX for the WMS layer are set through 
> OpenLayers, so you don't need to set them. As you say your WMS is 
> displayed in africa, it is likely the 
> BBOX=-2200000,-712631,3072800,3840000 the reason therefor.
> It
> is the area of north africa. Delete the two parameters. 
> 
> By the way: your wms_onlineresource in the mapfile should be 
> "http://..../mapserv.exe?map=..."
> 
> Arnd
> 

Hi Arnd Wippermmann,
Thanks for your reply. I had try to delele to parameters in js: BBOX and SRS
in tow case:
first: do not change map file: it's run but my wms layers stills in africa.
second: i change my map file by added: 
            EXTENT 0 0 984764.969969 2587135.118514 when i test my wms with
url, the image display data on top,right. but when i intergrate with google,
wms layer still in africa. 
I think this area is center of map (google map)

Help me please!
Again, thanks in advance.
--
View this message in context:
http://n2.nabble.com/wrong-location-when-load-map-on-googlemap-tp3626734p362
7078.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list