function map_callback($map) { global $points; foreach ($points as $coord) { addGeoCoord($map, $coord); } }
function gMapOptionsAlbum($map) { global $points; foreach ($points as $coord) { addGeoCoord($map, $coord); } $map->setWidth(535); }
/** * Gathers the map data for an album * @param $album album object * @param $map google map object */ function getAlbumGeodata($album, $map) { $result = false; $images = $album->getImages(0, 0, null, null, false); foreach ($images as $an_image) { $image = newImage($album, $an_image); $coord = getGeoCoord($image); if ($coord) { $result = true; // at least one image has geodata addGeoCoord($map, $coord); } } return $result; }
/** * Gathers the data for an album * @param album $obj * @param object $MAP_OBJECT */ function getAlbumGeodata($obj, $MAP_OBJECT) { $result = false; $images = $obj->getImages(0); foreach ($images as $an_image) { $image = newImage($obj, $an_image); $coord = getGeoCoord($image); if ($coord) { $result = true; // at least one image has geodata $coord['desc'] = '<a href="' . html_encode($image->getImageLink()) . '"><img src="' . html_encode($image->getThumb()) . '" alt="' . $image->getDesc() . '" ' . 'style=" margin-left: 30%; margin-right: 10%; border: 0px; " /></a><p align=center >' . $image->getDesc() . "</p>"; addGeoCoord($MAP_OBJECT, $coord); } } return $result; }