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

truongpm truong_pham_minh at yahoo.com
Fri Sep 11 13:03:27 EDT 2009




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-tp3626734p3627078.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list