Added some comments.
This commit is contained in:
parent
30a106a529
commit
f2fe6dd2b5
@ -36,6 +36,10 @@
|
|||||||
<? } ?>
|
<? } ?>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<? if (module::get_var("exif_gps", "googlemap_max_autozoom") != "") : ?>
|
<? if (module::get_var("exif_gps", "googlemap_max_autozoom") != "") : ?>
|
||||||
|
// 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() {
|
google.maps.event.addListener(map, 'zoom_changed', function() {
|
||||||
if (google_zoom_hack) {
|
if (google_zoom_hack) {
|
||||||
if (map.getZoom() > 18) map.setZoom(18);
|
if (map.getZoom() > 18) map.setZoom(18);
|
||||||
|
@ -63,6 +63,10 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
<? if (module::get_var("exif_gps", "googlemap_max_autozoom") != "") : ?>
|
<? if (module::get_var("exif_gps", "googlemap_max_autozoom") != "") : ?>
|
||||||
|
// 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() {
|
google.maps.event.addListener(map, 'zoom_changed', function() {
|
||||||
if (google_zoom_hack) {
|
if (google_zoom_hack) {
|
||||||
if (map.getZoom() > 18) map.setZoom(18);
|
if (map.getZoom() > 18) map.setZoom(18);
|
||||||
|
Reference in New Issue
Block a user