Pages (2):    1 2
Member
Member
olihar   22-01-2009, 08:55
#21

What would printAlbumSubFolderMap() do?

It would fetch info from the photos inside of subfolders. Lets say you could have a map for your whole gallery right on the front page or in album.php with sub folders.

Member
Member
sbillard   22-01-2009, 18:57
#22

`printAlbumSubFolderMap(): If your gallery (album) has many picures in it this could take quite a while.

Member
Member
olihar   22-01-2009, 20:01
#23

I am fully aware of that, I am thinking this kind of function for a special project..

Connected to that I am wondering about babar_e comment about binding points and the possibilities there for bigger albums.

Member
Member
babar_e   30-01-2009, 18:14
#24

I suppose you would have to do that at the php script level, an dwrite afunctin that scan the database for pictures that are within a certain distance and bind them together.
When you zoom, then the map would have to request in live the individual markers if the zoom level is enough to distinguish between them.
But I believe this is a long term development

Meanwhile for autozoom in using google map functions you can have a look there:

http://groups.google.com/group/Google-Maps-API/browse_thread/thread/60707f79305efc96/f81f365b292b6422?lnk=gst&q=centerAndZoomOnBounds&pli=1

It looks simpler than the current one, but not sure how fast it is:

GMap2.prototype.centerAndZoomOnBounds = function(bounds) {
var center_lat = (bounds.getNorthEast().lat() +
bounds.getSouthWest().lat()) / 2.0;
var center_lng = (bounds.getNorthEast().lng() +
bounds.getSouthWest().lng()) / 2.0;
if(bounds.getNorthEast().lng() < bounds.getSouthWest().lng()){
center_lng += 180;
}
var center = new GLatLng(center_lat,center_lng)
map.setCenter(center, map.getBoundsZoomLevel(bounds));

Member
Member
babar_e   30-01-2009, 18:18
#25

and that is where you can find info on marker clusering:

http://code.google.com/intl/fr/apis/maps/documentation/overlays.html#Marker_Manager

Member
Member
olihar   21-02-2009, 20:46
#26

Just a quick question towards this again.

If you look here at the map.

http://www.olihar.com/gallery/Photos/People/

it is like the auto-zoom function is not working 100% right. It would be great if the zoom level was just 1 more zoom level out in this case.

Just a quick note.

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.