<?php include_once "../libs/phoogle.php"; $map = new PhoogleMap(); $map->setAPIKey("ABQIAAAAm7-WgoUcljbjg9lZ826pHxRN4KJJp6EBD1WWP8QcpU_yf0xsLhRxf0cBTQ-sCTPwQutPfmSfAMpghw"); $map->zoomLevel = 3; $map->setWidth(640); $map->setHeight(480); $map->addGeoPoint(19.842264, -90.536951, "Domicilio de la Caja Solidaria"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Geo Localizacion de Vivienda</title> <?php $map->printGoogleJS(); ?> </head> <body onload="load()" onunload="GUnload()"> <?php $map->showMap(); ?> </body> </html>
// use the cached data } } // continual data if (file_exists($cachedatafileContinual)) { $cacheddataContinual = get_cached_data(MAPTRIG_TTL, "maptrig", $cachedatafileContinual); // regenerate every 15 minutes if ($cacheddataContinual) { $bUseContinual = true; $dataContinual = unserialize($cacheddataContinual); // use the cached data } } $i = 0; for ($i = 0; $i < sizeof($data); $i++) { if ($data[$i]) { $pm->addGeoPoint($data[$i]->lat, $data[$i]->lng, $data[$i]->descript, $data[$i]->is_quake, $data[$i]->is_usb); } } if ($bUseContinual) { // show continual points $i = 0; for ($i = 0; $i < sizeof($dataContinual); $i++) { if ($dataContinual[$i]) { $pm->addGeoPoint($dataContinual[$i]->lat, $dataContinual[$i]->lng, $dataContinual[$i]->descript, $dataContinual[$i]->is_quake, $dataContinual[$i]->is_usb); } } } $pm->showMap(); echo "<center><h5><a href=maptrig.php?timeint=H>Hour</a> - <a href=maptrig.php?timeint=D>Day</a> - <a href=maptrig.php?timeint=W>Week</a> - <a href=maptrig.php?timeint=M>Month</a>"; page_tail();