diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-02 07:05:49 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-02 07:05:57 -0700 |
commit | 91c121647293dd04daf8c932371dbe7f17e96f98 (patch) | |
tree | cd36237e85d2d56c060ce286a22e3f194b67ff8a /modern/src/map/MapGeofenceEdit.js | |
parent | a58795c7736ae4464646398e5089968aa32c65f3 (diff) | |
download | trackermap-web-91c121647293dd04daf8c932371dbe7f17e96f98.tar.gz trackermap-web-91c121647293dd04daf8c932371dbe7f17e96f98.tar.bz2 trackermap-web-91c121647293dd04daf8c932371dbe7f17e96f98.zip |
Fix bounds
Diffstat (limited to 'modern/src/map/MapGeofenceEdit.js')
-rw-r--r-- | modern/src/map/MapGeofenceEdit.js | 2 |
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 }); |