On Mar 18, 8:35 am, Rhythmdvl <[email protected]> wrote: > (Please forgive me if this is posted to the wrong group or is too > basic for this group. If so, if you’d kindly help with a better place > to post, I’d very much appreciate it.) > > I am trying to build a store locator that has the “to here” and “from > here” options on the marker pop-ups. I have yet to find a locator > tutorial with this feature, and I hope someone can point to one that > I’ve missed or help me in combining two scripts. > > I found two excellent tutorials that, together, do exactly what I > need. > > The first is found > at:http://code.google.com/support/bin/answer.py?answer=87134&topic=11364 > It works wonderfully for the main map – I have it connected to a MySQL > database with the store locations, recentered it as needed, and > putting in a zip code or address shows the locations correctly. Using > my feeble PHP and MySQL abilities, I was able to modify it slightly to > add more information (e.g., I added phone number and category to the > database, and have category show up in the sidebar and phone number in > the marker). > > The second is found > at:http://www.mandladventures.com/2006/05/04/google-maps-api/ > This map has the “to here” and “from here” directions link when a > marker is clicked. > > I can see where the directions code exists in the second script, and > can (marginally) follow what it’s doing. However, combining the two > scripts — figuring out what exactly to copy, where to paste it, and > how to modify the first script — is proving beyond my current > abilities. (As is figuring out how to apply Gdirections or other tools > noted at the end of the first tutorial.) > > I am completely new to JavaScript. I have taught myself enough HTML, > PHP, and MySQL over the past couple years to “get by”, in that I can > write basic things such as survey pages, document libraries, etc., but > am just starting the process of learning JavaScript. Any help or > guidance will be greatly appreciated. >
Have you seen Mike Williams' tutorial? http://econym.org.uk/gmap/ He has a couple of examples that add the directions functionality. -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
