Direction animation PDF Print E-mail
Written by Mike Reumer   
Thursday, 16 July 2009 21:38

It's possible to animate a route with streetview and directions. Initiative, idea and sponsored by Andrea Torre! Thank you very much.
It's possible to add multiple via's.

For this option you still need to use Google Maps API version 2 so use version 2.18 of the plugin and set the google API version to 2.x.

For example:

{mosmap animdir='2'|address='Piazza Papa Pio XII, Roma, Lazio, Italy'|toaddress='Fiumicino, Italy'|waypoint[1]='Roma, Italy'|waypoint[2]='Ciampino, Italy'|formspeed='1'|formdirtype='1'|formaddress='1'|animautostart='1'}

The following parameters are possible:

  • Animdir - If the animation should be possible.
    • 1 - Show first streetview, status bar and forms then map and as last directions.
    • 2 - Show first streetview, status bar and forms then maps on the left and directions on the right.
    • 3 - Show first maps on the left and directions on the right, status bar and forms then streetview.
  • address - The address for starting the route.
  • toaddress - The address for finishing the route.
  • waypoint - An array of address or latitude, longitude for via/waypoint between address and addressto. You need to use [] to specify the sequence (version >= 2.12n).
  • animspeed - the speed of the animation. This is in seconds. Can be zero for very fast.
  • animautostart='1' then animation will start immediately.
  • animunit - The unit that can be used: miles or kilometers
  • showdir='0' then directions will be invisible.
  • show='0' then map will be invisible.
  • formspeed - show form so user can set the speed of the animation.
  • formdirtype - show form so user can select the directions type: driving, walking or avoid highways.
  • formaddress - show a form so user can enter the from address and to address and generate it's own route.

If you get the error "Street View coverage is not available for this route" then the route (or part if waypoints are added) is not fully covered with streetview.

Last Updated on Monday, 20 May 2013 11:44
 

Advertisement