Esempio n. 1
0
 function map_callback($map)
 {
     global $points;
     foreach ($points as $coord) {
         addGeoCoord($map, $coord);
     }
 }
Esempio n. 2
0
function gMapOptionsAlbum($map)
{
    global $points;
    foreach ($points as $coord) {
        addGeoCoord($map, $coord);
    }
    $map->setWidth(535);
}
Esempio n. 3
0
/**
 * 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;
}
Esempio n. 4
0
/**
 * 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;
}