The code look like this:
Code: Select all
{php}
require('GoogleMapAPI.class.php');
global $gCms;
$map = new GoogleMapAPI('map');
// enter YOUR Google Map Key
$map->setAPIKey('MY-CODE');
// create some map markers
$address = $gCms->variables['address'];
$map->addMarkerByAddress('Someaddress 12 HELSINKI FI','Topic','<b>Some html</b>');
{/php}
Code: Select all
{php} $map->printHeaderJS(); $map->printMapJS(); {/php}
Code: Select all
{php} $map->printMap(); {/php}
Something like this:
Code: Select all
$map->addMarkerByAddress('".$address." FI','Topic','<b>Some html</b>');