[OpenLayers-Users] wrong location when load map on googlemap
truongpm
truong_pham_minh at yahoo.com
Fri Sep 11 14:27:45 EDT 2009
Thanks so much.
I solved this problem.
I wrong when defined EPSG:900913 on my mapserver.
Because of in vietnam, we use VN2000 coordinator system. So change
projection element in map file to
"ellps=WGS84" "a=6378137"
"rf=298.257223563" "datum=WGS84"
"units=m" "proj=tmerc"
"x_0=500000.0" "y_0=0.0"
"lon_0=105.0" "k_0=0.9996"
"lat_0=0.0"
:wistle:
Arnd Wippermann wrote:
>
> 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
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://n2.nabble.com/wrong-location-when-load-map-on-googlemap-tp3626734p3627508.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list