Marker with directions PDF Print E-mail
Written by Mike Reumer   
Friday, 18 May 2007 01:00

This demo shows how to place an address as a parameter so the marker will show based on the address with a directions form. With this form thevisitor can get directions to your location.
For avoid highways, walking option or direction on map itself you need version => 2.12g. For it's parameters see: Directions on map.

Dir can be:

  • 0 No directions
  • 1 New window/tab with maps.google.com with directions
  • 2 New window/tab with directions in print version
  • 3 Lightbox with directions in print version (Not kml-file rendered with geoxml)
  • 4 Lightbox with maps.google.com with directions (Not with kml file rendered with geoxml)
  • 5 Directions on the map itself (Not with kml file rendered with geoxml)

{mosmap address='street, zipcode place,  country'|dir='1'}

Also possible to open it in a lightbox (version => 2.12b):

{mosmap text='<div><div>hallo</div></div>'|address='de Tocht 4, 2731 CJ Benthuizen, The Netherlands'|dir='3'} 

JavaScript must be enabled in order for you to use Google Maps.
However, it seems JavaScript is either disabled or not supported by your browser.
To view Google Maps, enable JavaScript by changing your browser options, and then try again.

Also possible to open the route on the map itself (version => 2.12g): 

{mosmap text='<div><div>hallo</div></div>'|address='de Tocht 4, 2731 CJ Benthuizen, The Netherlands'|dir='5'} 

JavaScript must be enabled in order for you to use Google Maps.
However, it seems JavaScript is either disabled or not supported by your browser.
To view Google Maps, enable JavaScript by changing your browser options, and then try again.

With showdir (version => 2.12i) you can show or not show the directions below the map: 

{mosmap text='<div><div>hallo</div></div>'|address='de Tocht 4, 2731 CJ Benthuizen, The Netherlands'|dir='5'|showdir='0'} 

JavaScript must be enabled in order for you to use Google Maps.
However, it seems JavaScript is either disabled or not supported by your browser.
To view Google Maps, enable JavaScript by changing your browser options, and then try again.

 

Last Updated on Saturday, 11 April 2009 18:09
 

Advertisement