Link | google_map |
Author | Randy Phillips |
Category | Utility |
Version | 8.5.x |
License | Public Domain |
Posted | 27 Oct 2008 |
Updated | 27 Oct 2008 |
More by this author... |
The purpose of this tag is to access Google's Static Map API.
Refer to Google's Static Map API for map types, marker types, etc.
Docs @ http://code.google.com/apis/maps/documentation/staticmaps/
This ctag returns a static image file of your choosing of a Google Map. It will also overlay markers and paths.
Note: To find longitude and latitude coordinates of street addresses use the google_geocode ctag.
google_map( -size='475x400', -key='MAPS_API_KEY', -zoom='14', -center='40.711614,-74.012318', -mapType='mobile', -markers=array('40.702147,-74.015794,reda', '40.711614,-74.012318,tinygreen', '40.713504,-74.005607,midyellowb'), -path=array('40.702147,-74.015794', '40.713504,-74.005607'), -pathColor='0x0000ff', -pathWeight='8', -format='gif', -frame=true, );
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
define_tag( 'map', -namespace='google_', -req='size', -req='key', -opt='center', -opt='zoom', -opt='format', -opt='mapType', -opt='markers', -type='array', -opt='path', -type='array', -opt='frame', -type='boolean', -encodenone ); !local_defined('center') ? local('center') = string; !local_defined('zoom') ? local('zoom') = string; !local_defined('format') ? local('format') = string; !local_defined('mapType') ? local('mapType') = string; !local_defined('markers') ? local('markers') = array; !local_defined('path') ? local('path') = array; !local_defined('pathColor') ? local('pathColor') = '0x0000ff'; !local_defined('pathWeight') ? local('pathWeight') = '5'; !local_defined('frame') ? local('frame') = false; local('imgURL') = ''; return(#imgURL); /define_tag;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft