$t->map("directions", $mapOptions);
$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 |
destination | A string : containing the destination address. |
travelMode | A string : containing the type of travel mode to display, options include:
|
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 false. |
type | A string : containing the type of map to display, options include
|
marker | Boolean : to display a marker at the map location. If Blank the default is true. |
marker colours | A 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. |
width | An integer : The width of the map.If Blank the default is 480px |
height | An integer : The height of the map.If Blank the default is 480px |