Search found 3 matches

Go to advanced search

by trn579s
Wed Sep 12, 2012 7:30 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

That just creates a new instance of the object, I already have one handy :-) In case anyone else runs across this, you need to add an event listener that watches for a click on the map. I set this up by going to 'Run Customer Javascript" on my pages Load event. Of course earlier in that script ...
by trn579s
Wed Sep 12, 2012 6:37 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

That is what I am doing, although maybe I am not referencing the instance of my google map correctly? Here is my click event on the map: var map = Tiggr('GoogleMap'); var theLat = map.getCenter().lat(); var theLng = map.getCenter().lng(); console.log("Lat is " + theLat + " and the lng...
by trn579s
Wed Sep 12, 2012 3:30 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

How do a retrieve the latitude and longitude that a user clicked on my google map? I want to add a marker at that location which is easy, but I cannot get the lat/lng where the user clicked. I've read through the Google API documentation and can do this on my website fairly easily... just cannot see...

Go to advanced search