January 9, 200917 yr Hello everyone, Some time ago I created a website for the family business. On this page http://www.crawfordandson.co.uk/map.html is a map giving directions to our premises. It uses the Google maps Api. My problem is this; currently you type in your post code or whatever and the click the get direction button to generate a route. I would like to also give directions from set locations on the map, for example the local train station. The locations would be activated by pushing the button marked “nearest train station” etc. A route would then be generated from that location to our premises. It’s obvious that it can be done, pushing the button would trigger an event where a set of co-ordinates are loaded and a route generated to the destination co-ordinates. My knowledge of JavaScript is not yet good enough to code it. Does anybody else know? I'm looking for about 4 buttons in total that I can set up with any co-ordinates I choose.
Create an account or sign in to comment