Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix overlay map layers that were displayed at the wrong elevation #3394

Merged
merged 4 commits into from
Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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