Skip to content

Commit

Permalink
fix: only emit CRS box in static config in legacy mode
Browse files Browse the repository at this point in the history
Issue: #237
Issue: #300
  • Loading branch information
alex4401 committed Jul 21, 2024
1 parent 56351d0 commit 479340e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/Rendering/EmbedConfigGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public function makeArray(): array {
$out['cOrigin'] = $coordOrder = $this->data->getCoordinateSystem()->getOrigin();
$out['cOrder'] = $coordOrder = $this->data->getCoordinateSystem()->getOrder();
$out['cRot'] = $this->data->getCoordinateSystem()->getRotation();
$out['crs'] = $this->data->getCoordinateSystem()->getNormalisedBox();
if ( $this->data->getCoordinateSystem()->isLegacy() ) {
$out['crs'] = $this->data->getCoordinateSystem()->getNormalisedBox();
}
// Feature management
$bitmask = $this->getPublicFeatureBitMask();
if ( $bitmask != 0 ) {
Expand Down

0 comments on commit 479340e

Please sign in to comment.