<?php
include_once("../include/GoogleMap.php");
include_once("../include/JSMin.php");
$MAP_OBJECT = new GoogleMapAPI();
$MAP_OBJECT->_minify_js = isset($_REQUEST["min"])?FALSE:TRUE;
$MAP_OBJECT->setDSN("mysql://user:[email protected]/db_name");
$MAP_OBJECT->disableSidebar();
//Build address array for new polyline
$polyline_array = array("Littleton, CO", "Broomfield, CO", "Boulder, CO");
$polyline_id = $MAP_OBJECT->addPolyLineByAddressArray($polyline_array, $id=false,$color='#FF0000',$weight=2, $opacity=.8);
//Add a third address just for fun to demonstrate adding another point outside of an array (will connect from last endpoint)
$MAP_OBJECT->addPolyLineByAddress("Fort Collins, CO", "Loveland, CO", $polyline_id);
?>
<html>
<head>
<?=$MAP_OBJECT->getHeaderJS();?>
<?=$MAP_OBJECT->getMapJS();?>
</head>
<body>
<?=$MAP_OBJECT->printOnLoad();?>
<?=$MAP_OBJECT->printMap();?>
</body>
</html>