Thanks for that suggestion, sbillard.
I am not looking to use a built in google map implementation. In my case, individual images do not have location info. Only albums do. And I really do not need a map for each image.
What I have is a separate page called Maps where I have full window google map with a location for each album. Some albums reflect certain types of pictures (and thus have a distinct map marker). I've got this part down.
It's also easy to query the zp_albums page for a title to show into the map information popup.
However, I'm having a hard time using existing functions like `printCustomAlbumThumbImage` to grab a thumbnail from each album.
These zenphoto functions do exactly what I want but unfortunately do not take album_id or title as a parameter. Instead they use the current album id (A global variable from what I understand). This would be useful if I did a map within a current album. However my map is independent of any specific album.
I wrote this function but as you can imagine, it wont finish till it finds an image in the cache dir. Sometimes this step hangs.
`
function album_thumb($id,$folder) {
global $db;
do {
$albe=mysql_query("select filename from zp_images WHERE albumid='$id' order by rand() LIMIT 1",$db);
$ima=mysql_fetch_array($albe);
$im=$ima['filename'];
$im=substr($im,0,-4);
$im=$im."_100_cw85_ch85_thumb.jpg";
$image="http://site.org/cache/$folder/$im";
$path_to_file="/home/user/site.org/cache/$folder/$im";
$exist=file_exists($path_to_file);
} while($exist==FALSE);
return $image;
}
`
I've done quite a bit of looking around (don't mean to give you the impression that I haven't) and am still coming up short.
Thanks again.