Lost

12 views
Skip to first unread message

Jeff Lake

unread,
Dec 17, 2011, 3:22:57 AM12/17/11
to google-map...@googlegroups.com
This is my first experience with the API v3...
I have looked over the example's, and docs until I'm blue in the face..

All I'm interested in doing is having this map http://www2.michiganwxsystem.com
export the lat/lon of a user clicked point, to populate a new URL
ie daycast.php?lat=xxxx&lon=xxxx ..
Im sure its pretty simple, but i must have overlooked it ..

den380

unread,
Dec 18, 2011, 10:27:29 AM12/18/11
to Google Maps JavaScript API v3
in order to get coordinates of use click you would need to add a
listener to your map:

google.maps.event.addListener(map, 'click', function(event) {
do_smth_with_coords(event.latLng);
});

then you can use coords further. In my example function
"do_smth_with_coords" will recessive LatLng object.

good luck,
dennis

On 17 Грд, 10:22, Jeff Lake <ad...@michiganwxsystem.com> wrote:
> This is my first experience with the API v3...
> I have looked over the example's, and docs until I'm blue in the face..
>

> All I'm interested in doing is having this maphttp://www2.michiganwxsystem.com

Reply all
Reply to author
Forward
0 new messages