Hi,
Ok. You see...I'm a newbie...although a very happy newbie that have
the opportunity to learn something new everyday! Thank you!
I am at work now but will try to update the code tonight.
Should I do it like this?
GEvent.addListener(marker, "dragend", function() {
document.getElementById("lat").value=marker.getPoint().lat();
document.getElementById("lng").value=marker.getPoint().lng
();
if (latlng != null) {
address = latlng;
geo.getLocations(latlng, showAddress); }
} ) ;
By the way...what does address = latlng; mean? Is it the value of the
"address" that get send to the geocoder?
/Nimrod
On 6 Maj, 22:53, Rossko <[email protected]> wrote:
> > I have tried to update the code but I do not get it to work. I would
> > appriciate if you could have a look at the code and point me, once
> > again, in the right direction.http://www.g8journey.com/map.php
>
> You need to get and use a debugger of some kind.
> I get a straightforward javascript error and no map -
> GEvent.addListener(marker, "dragend", getAddress {
> ... code ...
> } ) ;
> you're still mixing the method here, either
> GEvent.addListener(marker, "dragend", somefunction ) ;
> or
> GEvent.addListener(marker, "dragend", function() {
> some code to make an anonymous function
> } ) ;
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---