Hi there,
I'm attempting to recreate an interactive map by following the tutorial at:
http://code.google.com/apis/maps/articles/mvcfun.html
Everything works perfectly, however there are two subsequent steps that I
cannot seem to get right.
*1) *There is a function in the code that outputs the position of a marker
and a radius
function displayInfo(widget) {
var info = document.getElementById('info');
info.innerHTML = 'Position: ' + widget.get('position') + ', distance: '
+
widget.get('distance');
}
to a div in the body of the html page:
<div id="info"></div>
I need to use this information so I would prefer the information to be sent
to three hidden textboxes
<form name="location" action="/design" method="post">
<input type="text" name="lat" value="Latitude" class = "hidden">
<input type="text" name="lon" value="Longitude" class = "hidden">
<input type="text" name="dist" value="Distance" class = "hidden">
<div id = "map_select_button"> <input type="submit" value="Next" ></div>
</form>
*2)* The subsequent example of what can be done with these MVC objects shown
at http://code.google.com/apis/maps/articles/mvcfun/twittersearch.html shows
that latlng can be coded to give an address which is very cool. I've had a
read of the code but cannot pick out the bit responsible.
Any clues on how to solve either of these issues would be hugely
appreciated!!
Cheers,
A
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.