Load KML file

[Open in new Window]

include_once('../../GoogleMapsPHP/Classes/Core/Bootstrap.php');

$map = \AdGrafik\GoogleMapsPHP\Utility\ClassUtility::makeInstance('AdGrafik\\GoogleMapsPHP\\MapBuilder');
$map->setCenter('41.875696, -87.624207');
$map->setZoom(11);

$map->add('KmlLayer', array(
	'url' => 'http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml',
));

echo $map;