From 06098cbe9954404ffbc12ef0f8b1b62ecfdae172 Mon Sep 17 00:00:00 2001 From: niaxilin Date: Thu, 21 Apr 2011 22:54:20 -0700 Subject: [PATCH 1/2] Fixed googlemap_max_autozoom not having desired effect. --- 3.1/modules/exif_gps/views/exif_gps_dynamic2_sidebar.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3.1/modules/exif_gps/views/exif_gps_dynamic2_sidebar.html.php b/3.1/modules/exif_gps/views/exif_gps_dynamic2_sidebar.html.php index 24b69acb..056bfe6c 100644 --- a/3.1/modules/exif_gps/views/exif_gps_dynamic2_sidebar.html.php +++ b/3.1/modules/exif_gps/views/exif_gps_dynamic2_sidebar.html.php @@ -35,14 +35,14 @@ - + // If there is a maximum auto-zoom value, then set up an event to check the zoom // level the first time it is changed, and adjust it if necessary. // (if we call map.getZoom right after .fitBounds, getZoom will return the initial // zoom level, not the auto zoom level, this way we get the auto zoomed value). google.maps.event.addListener(map, 'zoom_changed', function() { if (google_zoom_hack) { - if (map.getZoom() > 18) map.setZoom(18); + if (map.getZoom() > ) map.setZoom(); google_zoom_hack = false; } }); From 3735e967338fd0f9412e2b1040b4257dff90691c Mon Sep 17 00:00:00 2001 From: niaxilin Date: Thu, 21 Apr 2011 22:55:15 -0700 Subject: [PATCH 2/2] Fixed googlemap_max_autozoom not having desired effect. --- 3.1/modules/exif_gps/views/exif_gps_map.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3.1/modules/exif_gps/views/exif_gps_map.html.php b/3.1/modules/exif_gps/views/exif_gps_map.html.php index 6c8a59ee..95f6221c 100644 --- a/3.1/modules/exif_gps/views/exif_gps_map.html.php +++ b/3.1/modules/exif_gps/views/exif_gps_map.html.php @@ -62,14 +62,14 @@ infowindow.open(map,marker); }); - + // If there is a maximum auto-zoom value, then set up an event to check the zoom // level the first time it is changed, and adjust it if necessary. // (if we call map.getZoom right after .fitBounds, getZoom will return the initial // zoom level, not the auto zoom level, this way we get the auto zoomed value). google.maps.event.addListener(map, 'zoom_changed', function() { if (google_zoom_hack) { - if (map.getZoom() > 18) map.setZoom(18); + if (map.getZoom() > ) map.setZoom(); google_zoom_hack = false; } });