Search found 3 matches

Go to advanced search

by Professor English
Mon Mar 24, 2014 7:27 pm
Forum: Issues
Topic: Google Maps - get lat/lng on click event
Replies: 23
Views: 7060
 
Jump to post

Google Maps - get lat/lng on click event

My intention is to allow the user to long click on the map, and store the latLng coordinates into a variable (and then later put them into the system clickboard.) The alert is just to test and see if the long click returns the latLng. I may need to start "from zero", from the beginning. My...
by Professor English
Mon Mar 24, 2014 5:46 pm
Forum: Issues
Topic: Google Maps - get lat/lng on click event
Replies: 23
Views: 7060
 
Jump to post

Google Maps - get lat/lng on click event

No, there aren't. I simply copied the example above for the events section on the startpage, event, "loads", to run the following javascript //This adds a new marker where the user has clicked. google.maps.event.addListener(map, 'click', function(event) { marker = new google.maps.Marker({p...
by Professor English
Mon Mar 24, 2014 2:18 pm
Forum: Issues
Topic: Google Maps - get lat/lng on click event
Replies: 23
Views: 7060
 
Jump to post

Google Maps - get lat/lng on click event

Hi, I tried this and the initial start up page just locks. I too am trying to store the lat/long of a user long click on the map into a variable. Can anyone offer some help? Thanks!

Go to advanced search