/** * 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; }