Connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE);
}
catch (exception $e)
{
$db->ErrorMsg();
}
///////////////////////////////////////////////////////////////////////////////////////
$catalogDAO = new CatalogDAO();
$properties = $catalogDAO->getAllProperties();
///////////////////////////////////////////////////////////////////////////////////////
$map = new PhoogleMap();
$map->setWidth(550);
$map->setHeight(400);
foreach ($properties as $property)
{
$address = "";
if ($property->showAddress)
$address = $property->getAddressVertical();
if ($property->destination == "fileName")
$link = $property->fileName . ".php";
if ($property->destination == "outgoingLink")
$link = $property->outgoingLink;
if ($property->showImage)
$propertyHtml = "
";
else
$propertyHtml = "";
if ($property->marker)
$map->addGeoPointWithIcon($property->latitude, $property->longitude, MARKER_DIR . $property->marker, $propertyHtml);
else
$map->addGeoPointWithIcon($property->latitude, $property->longitude, MAIN_MARKER, $propertyHtml);
}
?>
Ottawa Neighbourhoods - Ottawa Homes & Ottawa Real Estate
$map->printGoogleJS(); ?>