Skip to content

Commit

Permalink
Merge pull request #432 from stuartwoodman/AUS-4229-World-Bounds-Crop…
Browse files Browse the repository at this point in the history
…ping

AUS-4229 World Map Bounds Cropping
  • Loading branch information
stuartwoodman authored Aug 21, 2024
2 parents d4d0574 + 3d279a5 commit 86ec365
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ export class InfoPanelSubComponent implements OnInit {
} else if (this.layer.legendImg && this.layer.legendImg !== '') {
this.legendUrl = this.env.portalBaseUrl + 'legend/' + this.layer.legendImg;
}
// Gather up BBOX coordinates to calculate the centre and envelope
const bbox = this.cswRecord.geographicElements[0];

// Gather up BBOX coordinates to calculate the centre and envelope. Use a copy of coords so they don't stay modified for the main map
const bbox = { ...this.cswRecord.geographicElements[0] };

// Make sure that the view is only of Australia
// On most maps if we use world-wide bounds it will make the Australian features too small
if (bbox.westBoundLongitude < 100) {
Expand Down

0 comments on commit 86ec365

Please sign in to comment.