[mapguide-users] Get Coordinates

Dorin did_1414 at yahoo.com
Thu Jul 10 05:49:01 EDT 2008


Hi, tries this

Longitude
grade=(int)point.X/60
minutes=(int) point.X/3600
rests are seconds
 
Latitude
grades=(int)point.Y/60
minutes=(int) point.Y/3600
rests are seconds





----- Original Message ----
From: gimbrogno <magnitudo9 at email.it>
To: mapguide-users at lists.osgeo.org
Sent: Thursday, July 10, 2008 12:33:58 PM
Subject: Re: [mapguide-users] Get Coordinates


Hi all, I have solved using the suggestions of Dorin333...
I managed the DigitizePoint() function in the js, so when I click there is a
popup with the coordinates (meters), but now I have to convert it into
latlon. There is alredy a function that make this?

Thanks a lot to all



Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> It's a bit unclear what you want.
> If you want to get the coordinate when you click, Dorin is correct.
> The javascript function is called "DigitizePoint".
> 
> If you want to display the coordinates as the mouse moves, you will have
> to
> study the file "ajaxmappane.templ" and figure out what function to hook 
> into.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Dorin skrev:
>> Hi,
>> On the phpviewer sample (PHP code) you have a markup option, and you 
>> can create on a click mouse on a map (get coordinate x,y) an point.You 
>> can studying this samples in order to find a solution.
>> Dorin
>>
>> ----- Original Message ----
>> From: gimbrogno <magnitudo9 at email.it>
>> To: mapguide-users at lists.osgeo.org
>> Sent: Tuesday, July 8, 2008 6:28:46 PM
>> Subject: Re: [mapguide-users] Get Coordinates
>>
>>
>> Hi I have the same problem... Have you solved? Can you or any other
>> people
>> help me to solve my problem?
>>
>> Thanks a lot
>>
>>
>>
>> Jhonn Jairo Vesga Cadena wrote:
>> >
>> > Hi, i have a map in autodesk studio 2007, and i need to solve this 
>> issue:
>> >
>> > I need to create a point begins by click on the map, when i click the
>> > application launch a window where i get the X and Y coordinate, the
>> > problem its that, how can i get that coordinate??
>> >
>> > Some ideas??
>> >
>> > Thanks
>> >
>> > --
>> > att:
>> >
>> > Jhonn Jairo Vesga Cadena
>> >
>> > Móvil:
>> > Movistar: 316-524-4147
>> > _______________________________________________
>> > mapguide-users mailing list
>> > mapguide-users at lists.osgeo.org <mailto:mapguide-users at lists.osgeo.org>
>> > http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> >
>> >
>>
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Get-Coordinates-tp13951030p18341934.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com 
>> <http://Nabble.com>.
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org <mailto:mapguide-users at lists.osgeo.org>
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>  
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Get-Coordinates-tp13951030p18379167.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080710/74afcc86/attachment.html


More information about the mapguide-users mailing list