Is it possible to make seperate fields for address, city, state, and
zipcode. I have been trying to make this happen for days, but appearantly
everytime I look at this, I walk away confused, and I'm skilled in HTML and
JS. I've also tried using php to load another page that would automatically
load all of the individual values into the fromAddress field, but even that
wouldn't work for me.
I'm talking about the part of the JS file:
function setDirections(fromAddress, toAddress, locale) {
gdir.load("from: " + fromAddress + " to: " + toAddress,
{ "locale": locale , "getSteps":true});
I assume this would be where I would change the properties and seperate the
fromAddress into multiple fields with a space between them, but I can't get
it to cooperate in any browser (I've tried IE, FF, and Opera).
For reference, I am making a page that will find directions from a user
specified location to a set location of a business. The map loads on the
same page, so it starts out as hidden and when the user clicks "get
Directions", the map and directions appear. Below is a temporary link to
the page in question
A link can be found here:
http://italianclubactivation.freehostia.com/cpg/find_us.html
The associated .js file:
http://italianclubactivation.freehostia.com/cpg/javascript/gmaps_setup.js
Thanks to everyone for taking the time to look at this.
-Kyle
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---