11
votes
Vote UpVote

Using the Google Maps API V3 from Delphi – Part III Getting the latitude and longitude of a mouse click

The Road to Delphi – In this post I will show, how you can interact with a google map embeded in a TWebbrowser component in order to get the location ( latitude and longitude) of  a point when you click in the map. Javascript To get the location of the mouse when you make a click in the map you must add a  Google maps Event Listener, passing a function to process the event, the values of the current location are retrieved in the event.latLng variable , the next step is store the values returned in a hidden field element to after get these values from delphi. Check this sample javascript snippet which create a ...
Favorite? Off-Topic? Rodrigo @ 2011-06-25 03:31

Statistics

Visits: 1499
Votes: 11
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

François
jamiei
Jan Derk
ket555
Maggio Alessandro
Paul Thornton
Ph. B.
stukelly
vcldeveloper
VICovSki
xequte
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)