Commit 642082d0 authored by Elias Englmeier's avatar Elias Englmeier
Browse files

zoom fixed

parent b26b232f
...@@ -60,6 +60,7 @@ $(document).ready(function(){ ...@@ -60,6 +60,7 @@ $(document).ready(function(){
map.addLayer(loadedMarker); map.addLayer(loadedMarker);
} }
}); });
map.options.maxZoom = 14;
map.fitBounds(markerGroup.getBounds().pad(0.5)); map.fitBounds(markerGroup.getBounds().pad(0.5));
}else{ }else{
map.setView([51.312066, 9.492901],12) map.setView([51.312066, 9.492901],12)
......
...@@ -60,6 +60,7 @@ $(document).ready(function(){ ...@@ -60,6 +60,7 @@ $(document).ready(function(){
map.addLayer(loadedMarker); map.addLayer(loadedMarker);
} }
}); });
map.options.maxZoom = 14;
map.fitBounds(markerGroup.getBounds().pad(0.5)); map.fitBounds(markerGroup.getBounds().pad(0.5));
}else{ }else{
map.setView([51.312066, 9.492901],12) map.setView([51.312066, 9.492901],12)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment