Skip to content

Commit

Permalink
fix: fix of fix of coordinates in client
Browse files Browse the repository at this point in the history
  • Loading branch information
Saprigenie committed Mar 15, 2024
1 parent 4be2940 commit 64d2d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/common/map/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ function sendObjects(
let listFormation = (objList: ObjectInfo[]) => (layer: any) => {
let coordinates = [];

for (let i = 0; i < layer._latlngs[0]; i++) {
for (let i = 0; i < layer._latlngs[0].length; i++) {
coordinates.push([layer._latlngs[0][i].lat, layer._latlngs[0][i].lng]);
}

Expand Down

0 comments on commit 64d2d79

Please sign in to comment.