|
@@ -100,7 +100,9 @@ $(document).ready(function(){
|
100
|
100
|
if(map_bounds) {
|
101
|
101
|
// TODO hack: https://github.com/Leaflet/Leaflet/issues/2021
|
102
|
102
|
setTimeout(function () {
|
103
|
|
- map.fitBounds(map_bounds);
|
|
103
|
+ map.fitBounds(map_bounds, {
|
|
104
|
+ maxZoom:17
|
|
105
|
+ });
|
104
|
106
|
}, 0);
|
105
|
107
|
} else if (map_lon && map_lat) {
|
106
|
108
|
if(map_zoom)
|
|
@@ -113,8 +115,8 @@ $(document).ready(function(){
|
113
|
115
|
|
114
|
116
|
if(map_geojson)
|
115
|
117
|
L.geoJson(map_geojson).addTo(map);
|
116
|
|
- //if(map_bounds)
|
117
|
|
- // L.rectangle(map_bounds, {color: "#ff7800", weight: 3, fill:false}).addTo(map);
|
|
118
|
+ /*else if(map_bounds)
|
|
119
|
+ L.rectangle(map_bounds, {color: "#ff7800", weight: 3, fill:false}).addTo(map);*/
|
118
|
120
|
});
|
119
|
121
|
|
120
|
122
|
// this event occour only once per element
|