[Open in new Window]
include_once('../../GoogleMapsPHP/Classes/Core/Bootstrap.php');
$map = \AdGrafik\GoogleMapsPHP\Utility\ClassUtility::makeInstance('AdGrafik\\GoogleMapsPHP\\MapBuilder');
$map->add('Marker', array(
'position' => '48.208202, 16.373749',
'title' => 'Hello World!',
'animation' => \AdGrafik\GoogleMapsPHP\API\Overlays\Animation::BOUNCE,
));
echo $map;
[Open in new Window]
include_once('../../GoogleMapsPHP/Classes/Core/Bootstrap.php');
$map = \AdGrafik\GoogleMapsPHP\Utility\ClassUtility::makeInstance('AdGrafik\\GoogleMapsPHP\\MapBuilder');
$map->add('Marker', array(
'position' => '48.208202, 16.373749',
'title' => 'Hello World!',
'infoWindow' => array(
'content' => '<strong>Hello</strong> World!',
'closeOnClickAgain' => TRUE,
),
));
echo $map;
[Open in new Window]
include_once('../../GoogleMapsPHP/Classes/Core/Bootstrap.php');
$map = \AdGrafik\GoogleMapsPHP\Utility\ClassUtility::makeInstance('AdGrafik\\GoogleMapsPHP\\MapBuilder');
$map->setFitBoundsOnLoad(TRUE);
$map->add('Marker', array(
'position' => array(
'48.0, 16.0', '48.2, 16.2', '48.4, 16.4', '48.6, 16.6',
'48.8, 16.4', '49.0, 16.2', '49.2, 16.0', '49.0, 15.8',
'48.8, 15.6', '48.6, 15.4', '48.4, 15.6', '48.2, 15.8',
),
));
echo $map;
[Open in new Window]
include_once('../../GoogleMapsPHP/Classes/Core/Bootstrap.php');
$map = \AdGrafik\GoogleMapsPHP\Utility\ClassUtility::makeInstance('AdGrafik\\GoogleMapsPHP\\MapBuilder');
$map->setFitBoundsOnLoad(TRUE);
$map->add('Marker', array(
'position' => array(
'48.0, 16.0', '48.2, 16.2', '48.4, 16.4', '48.6, 16.6',
'48.8, 16.4', '49.0, 16.2', '49.2, 16.0', '49.0, 15.8',
'48.8, 15.6', '48.6, 15.4', '48.4, 15.6', '48.2, 15.8',
),
'title' => array(
'48.0, 16.0', '48.2, 16.2', '48.4, 16.4', '48.6, 16.6',
'48.8, 16.4', '49.0, 16.2', '49.2, 16.0', '49.0, 15.8',
'48.8, 15.6', '48.6, 15.4', '48.4, 15.6', '48.2, 15.8',
),
'titleOptionSplit' => '*',
'infoWindow' => array(
array('content' => '<strong>A</strong>'),
array('content' => '<strong>B</strong>'),
array('content' => '<strong>C</strong>'),
),
'infoWindowOptionSplit' => '0 || 1 |*| 2 || 0 || 2 |*| 1 || 0',
));
echo $map;
[Open in new Window]
include_once('../../GoogleMapsPHP/Classes/Core/Bootstrap.php');
$map = \AdGrafik\GoogleMapsPHP\Utility\ClassUtility::makeInstance('AdGrafik\\GoogleMapsPHP\\MapBuilder');
$map->add('InfoWindow', array(
'position' => '48.208202, 16.373749',
'content' => 'Hello World!',
'opened' => TRUE,
));
echo $map1;