×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Show the route between two points, places.

Show the route between two points, places. 10 years 7 months ago #25706

  • Richard Ambrosino
  • Richard Ambrosino's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Karma: 1
  • Thank you received: 1
Hi Daniel,

It it possible to show in hotspots the route & directions between two places in a joomla article. I am trying to show a parade route between two places. I have two sets of longitude and latitude coordinates. We are having our annual parade and ceremony on Memorial Day in our town on long island called Merrick. I would like to show the parade route via a map and list the directions to get from point A to point B in the map. I been fooling around with a joomla app. called "googleDirections" which was design by a person name "kksou". I was wondering if this could be done in hotspots.

Rick Ambrosino

Show the route between two points, places. 10 years 7 months ago #25712

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Rick,
Unless you write some javascript to auto fill the directions field and click the search button no. The user will have to enter this information himself.
This is the js with mootools that would automatically fill the directions form and submit it:
window.addEvent('domready', function() {
document.id('directions-departure').set('value', 'karlsruhe').fireEvent('blur');
document.id('directions-arrival').set('value', 'heidelberg').fireEvent('blur');
 
document.id('search-directions').getElement('button').click();
});
 

You need to load this code on the page where you have the map. There are some plugins that can load javascript in an article.
Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.133 seconds