Merge pull request #1109 from jeanbe/patch-1
[*] FO : Set zoom on stores
This commit is contained in:
@@ -44,6 +44,12 @@ function initMarkers()
|
||||
createMarker(latlng, name, address, other, id_store, has_store_picture);
|
||||
bounds.extend(latlng);
|
||||
}
|
||||
map.fitBounds(bounds);
|
||||
var zoomOverride = map.getZoom();
|
||||
if(zoomOverride > 10) {
|
||||
zoomOverride = 10;
|
||||
}
|
||||
map.setZoom(zoomOverride);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user