Question
How do I build a static google map?
Answer
Building a static google map
Description #
Using this mADL function you can draw a static google map.
$t->map("drawBasicMap", $mapOptions);
Parameters #
An array of options including the following settings.
longitude : A string containing the locations longitude
latitude : A string containing the locations latitude
zoom : An integer from 1 to 20, the higher the number the map is more zoomed in. If Blank the default is 16.
type : A string containing the type of map to display, options include
roadmap . If Blank this is the default.
satellite
terrain
hybrid
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
Example #
View Code In Github: https://github.com/blinkmobile/examples/blob/master/madl%20interaction/Location%20Based/%24t-%3EdrawBasicMap.php