> Please seehttp://www.g8journey.com/map.php
>
> The map is working apart from the reverse geocoding.
Unconnected to this, do a 'view source' on your page and you will see
some funny characters before the doctype that need to come out.
At the heart of your code is your place() function, which includes -
GEvent.addListener(marker, "drag", function(getAddress)
{ document.getElementById ....
You can't do that. You can do
GEvent.addListener(marker, "drag", function() { some anonymous code })
or you can do
GEvent.addListener(marker, "drag", getAddress ) // with getAddress()
defined elsewhere
Look at the listener in the Google example you quote. What
parameters their getAddress() gets fed, depends on what the event
defines - you can't just make these up.
Here's a quick guide to the data returned from event listeners -
http://econym.org.uk/gmap/gevent.htm
Whichever way you decide to go, your code will need to extract the lat/
long of the dragged marker, reverse geocode it to get an address, and
then paste the address text in your form.
You'll also need to think about what happens if the user doesn't want
to drag the marker.
cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---