What do you mean by "send"?

You can send it from the client page to your server script with
GDownloadUrl().

See: http://econym.org.uk/gmap/store.htm


If you mean send it in an email, you can't do that directly from the
client code. You may be able to do it from server (so once again send it
to your server with GDownloadUrl()) but some ISPs don't permit
user-written server scripts to send emails because of the possibility of
generating spam.

Some ISPs may supply ISP-written scripts for email forms that impose
restrictions that prevent abuse, in such cases you could put your data
into such a form like
  document.getElementById("latitude").value = marker.getLatLng().lat()

If all else fails you could throw the data at the user's mail client
with a mailto: link. Something like this if I remembered the syntax
correctly:

var text = "Location: "+marker.getLatLng().toUrlValue(5);
var mailto = "mailto:[email protected]?subject=my Location &body=" + text;
document.getElementById("link">.innerHTML =
        '<a href="' + mailto +">SEND<\/a>';

-- 
Mike Williams
http://econym.org.uk/gmap


--

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.


Reply via email to