Skip to content

Commit

Permalink
account for longitudes both being beyond normal extent
Browse files Browse the repository at this point in the history
  • Loading branch information
gridcell committed Jul 22, 2024
1 parent cd923ec commit 8171fad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/MermaidDash.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ class MermaidDash extends Component {

if (x1 < -180 && x2 > 180) {
searchBoxes.push([-180, y1, 180, y2])
} else if ((x1 > 180 && x2 > 180) || (x1 < -180 && x2 <= 180)) {
searchBoxes.push([normalizeLongitude(x1), y1, normalizeLongitude(x2), y2])
} else if (x1 >= -180 && x2 > 180) {
searchBoxes.push([x1, y1, 180, y2])
searchBoxes.push([-180, y1, normalizeLongitude(x2), y2])
Expand Down

0 comments on commit 8171fad

Please sign in to comment.