Hi, Sorry, I have tried getting the API code for this site, but each time I get a new one it keeps saying its not for this site?!
I have used the same code as this...http://econym.org.uk/gmap/ example_multi2.htm but I would like the destination hard coded and only one button (with the textbox) to appear for the user, so that when the user enters their address and click the button it will bring up the directions, rather than having to click through 3 buttons. if you could show what bits i need to edit in the code to make this work that would be absolutely brilliant. Thanks On Jan 26, 12:12 pm, "warden [Andrew Leach - Maps API Guru]" <[email protected]> wrote: > On Jan 26, 12:02 pm, "[email protected]" > > <[email protected]> wrote: > > can anyone help? > > > I have it so the end location is hard coded, but the user still needs > > to click the button to action it. > > Can it be done so that the user can just enter their address and click > > the button once, and the directions are shown. > > Yes. Have an address entered by the user, call it -- say -- > startAddr. > > In your form handler, use > var dir="from: "+startAddr+" to: Buckingham Palace SW1" > or whatever your end address is. > > I've had a look at your page, but because the map doesn't actually > work [get a key for it!] it's difficult to see what's supposed to be > going on. > > Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
