Skip to content

Commit

Permalink
Merge pull request #429 from AuScope/Release-World-Bounds-Fix
Browse files Browse the repository at this point in the history
Release - World Bounds Fix
  • Loading branch information
PeterWarren authored Aug 16, 2024
2 parents 05a3d21 + 3922ed4 commit 3e7829f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,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 3e7829f

Please sign in to comment.