aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/MapGeofenceEdit.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/MapGeofenceEdit.js')
-rw-r--r--modern/src/map/MapGeofenceEdit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/MapGeofenceEdit.js b/modern/src/map/MapGeofenceEdit.js
index c387a086..a7e07483 100644
--- a/modern/src/map/MapGeofenceEdit.js
+++ b/modern/src/map/MapGeofenceEdit.js
@@ -148,7 +148,7 @@ const MapGeofenceEdit = ({ selectedGeofenceId }) => {
}
const bounds = coordinates.reduce(
(bounds, coordinate) => bounds.extend(coordinate),
- new maplibregl.LngLatBounds(coordinates[0], coordinates[0]),
+ new maplibregl.LngLatBounds(coordinates[0], coordinates[1]),
);
const canvas = map.getCanvas();
map.fitBounds(bounds, { padding: Math.min(canvas.width, canvas.height) * 0.1 });