Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

$mapOptions

An array of options including the following settings.
origin

A string : containing the original location address.

If set to "1" the device's current location will be used

destinationA string : containing the destination address.
travelMode 

latitude :

A string : containing

the locations latitude
zoom

An integer : from 1 to 20, the higher the number the map is more zoomed inthe type of travel mode to display, options include:

  • driving . If Blank this is the default.
  • walking
  • bicycling

avoidHighways

 Boolean : to set the route to avoid highways. If Blank the default is false.
avoidTolls

Boolean : to set the route to avoid tollways. If Blank the default is 16false.

type

A string : containing the type of map to display, options include

  • roadmap . If Blank this is the default.
  • satellite
  • terrain
  • hybrid
markerBoolean : to display a marker at the map location. If Blank the default is true.
marker coloursA comma delimited string : to set marker colours. If Blank the default is FFFFFF,FF0000,000000.
sensor

Boolean : fire up GPS and show user's current location. If Blank the default is false.

widthAn integer : The width of the map.If Blank the default is 480px
heightAn integer : The height of the map.If Blank the default is 480px

...