Skip to content

Commit

Permalink
fix loading logs with no fences
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Oct 26, 2024
1 parent 640b4af commit 862f5db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/CesiumViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,9 @@ export default {
cesiumPoints.push(position)
}
// we need to close the polygon
if (cesiumPoints.length === 0) {
continue
}
const lastPos = fence[0]
cesiumPoints.push(Cartesian3.fromDegrees(lastPos[0], lastPos[1]))
Expand Down

0 comments on commit 862f5db

Please sign in to comment.