-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix setStyle breaking with globe view (#11913)
* set draping for terrain * use map option for terrain draping check * move to one line * wip: add render test * fixed error with render test * demonstrate issue with mercator * fix background id to update in second setStyle call * bring zoom out to show sphere * Updating expected.png * better readability * fix conditional * fix lint Co-authored-by: Aidan H <[email protected]>
- Loading branch information
1 parent
1b95367
commit 1046bc7
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+3.03 KB
test/integration/render-tests/globe/globe-set-style/default/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions
60
test/integration/render-tests/globe/globe-set-style/default/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256, | ||
"width": 256, | ||
"operations": [ | ||
["setStyle", { | ||
"version": 8, | ||
"projection": {"name": "globe"}, | ||
"sources": { | ||
"mapbox": { | ||
"type": "vector", | ||
"maxzoom": 14, | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.mvt" | ||
] | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "background1", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "rgb(255,89,252)" | ||
} | ||
} | ||
] | ||
}], | ||
["wait"], | ||
["setStyle", { | ||
"version": 8, | ||
"projection": {"name": "globe"}, | ||
"sources": { | ||
"mapbox": { | ||
"type": "vector", | ||
"maxzoom": 14, | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.mvt" | ||
] | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "background2", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "rgb(17,207,20)" | ||
} | ||
} | ||
] | ||
}], | ||
["wait"] | ||
] | ||
} | ||
}, | ||
"zoom": 1, | ||
"sources": {}, | ||
"layers": [] | ||
} |