Hi there, Google Maps folks!
Well, this is the question:
Is there any diference between .getPosition() and .lat() .long() methods?
I need to have the marker coordinates on the screen as I click on it. So I
thought in a event like this:
google.maps.event.addListener(marker, 'click', function() {
document.getElementById('coords').value = marker.getPosition();
});
To work along such a form:
<input type="textbox" id="coords">
But unfortunnelly, Firebug is giving me a message error, saying that marker
is not defined.
Any help would be great!
Daniel
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/7ulh4fai7hUJ.
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-js-api-v3?hl=en.