Skip to content

Commit

Permalink
Fix overlay map layers that were displayed at the wrong elevation (#3394
Browse files Browse the repository at this point in the history
)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mdastous-bentley and mergify[bot] authored Mar 29, 2022
1 parent 2ab5fca commit af04d44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-frontend",
"comment": "Fix overlay map layers that were displayed at the wrong elevation",
"type": "none"
}
],
"packageName": "@itwin/core-frontend"
}
4 changes: 2 additions & 2 deletions core/frontend/src/tile/map/MapTileTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ class MapTreeSupplier implements TileTreeSupplier {
cmp = compareStringsOrUndefined(lhs.maskModelIds, rhs.maskModelIds);
if (0 === cmp) {
cmp = compareBooleans(lhs.isOverlay, rhs.isOverlay);
if (0 === cmp && !lhs.isOverlay) {
if (0 === cmp) {
cmp = compareBooleans(lhs.wantSkirts, rhs.wantSkirts);
if (0 === cmp) {
cmp = compareBooleans(lhs.wantNormals, rhs.wantNormals);
Expand Down Expand Up @@ -666,7 +666,7 @@ export class MapTileTreeReference extends TileTreeReference {

const id: MapTreeId = {
tileUserId: this._tileUserId,
applyTerrain: this.settings.applyTerrain && !this.isOverlay && !this._isDrape,
applyTerrain: this.settings.applyTerrain && !this._isDrape,
terrainProviderName: this.settings.terrainSettings.providerName,
terrainHeightOrigin: this.settings.terrainSettings.heightOrigin,
terrainHeightOriginMode: this.settings.terrainSettings.heightOriginMode,
Expand Down

0 comments on commit af04d44

Please sign in to comment.