I want the destination to be dynamic, based
> upon a) or b) above.

seems to me like you're pretty close. what I think you need to do is
change the onclick of your Find button to call the calcRoute()
function, then change the "end" variable in your calcRoute function to
accept the address from the text box, like this:
var end = document.getElementById("address").value;

which should take care of (b). (a) just involves setting up a click
listener on the map and feeding that point to the directions service,
too.

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to