- switched coordinate order, to match Leaflet LatLngBounds object (#1163)
https://leafletjs.com/reference.html#latlngbounds
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
.addTo(map);
|
||||
|
||||
map.on('click', clearHighlight);
|
||||
bounds = L.latLngBounds([[{{ data['bounds'][0] }},{{data['bounds'][1]}}],[{{ data['bounds'][2] }},{{data['bounds'][3]}}]])
|
||||
bounds = L.latLngBounds([[{{ data['bounds'][1] }},{{data['bounds'][0]}}],[{{ data['bounds'][3] }},{{data['bounds'][2]}}]])
|
||||
map.fitBounds(bounds, maxZoom={{ data['maxzoom']}});
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user