VDS Technologies

 

Get Lat , Long coordinate on click on the map

9/4/2014 7:51:26 AM
Total Posts 14

Get Lat , Long coordinate on click on the map

Dear 

I am working now to create map application by using AspMap , i am trying now to get Lat ,Long coordinate with double

click function on the map

Thanks  

 

9/6/2014 10:11:08 AM
Total Posts 14

Re: Get Lat , Long coordinate on click on the map

Dear all I need your help, no body reply, I need answer from VDS technology technical team thanks
9/11/2014 12:09:10 AM
MVP
Total Posts 323

Re: Get Lat , Long coordinate on click on the map

There is no a double click event in AspMap.
You may handle the map.panToolClick event from the AspMap JavaScript API on the client-side, or handle the server-side PointTool, InfoTool events (the Map.MapTool property must be set the appropriate map tool).

To get lat/long coordinates, it is required to know what is the coordinate system of your map files. If you set the Map.CoordinateSystem property to transform the map files into a common coordinate system, then call the Map.CoordinateSystem.ToWgs84 method to transform the coordinate of the user's click to the lat/long coordinate system.

If all of your map files support the WGS84 coordinate system, then the coordinate of the user's click is already a lat/long coordinate, where

point.X - longitude

point.Y - latutude