-
-
Notifications
You must be signed in to change notification settings - Fork 768
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
Support line
layer on Globe with Terrain3D
#4970
Support line
layer on Globe with Terrain3D
#4970
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4970 +/- ##
==========================================
+ Coverage 90.41% 90.88% +0.46%
==========================================
Files 266 266
Lines 38164 38170 +6
Branches 3217 3187 -30
==========================================
+ Hits 34507 34689 +182
+ Misses 2669 2561 -108
+ Partials 988 920 -68 ☔ View full report in Codecov by Sentry. |
beee0a3
to
06bcd17
Compare
Do you think we should create a branch in this repo to allow merging everything to that branch like we did with the globe feature? |
I actually don't think it's necessary. Unlike with the globe, it appear that it's quite possible to land the improvements in an incremental manner - independently of each other. The layers are quite well separated in the code. |
What about adding a render test? Even a single geojson and zero elevation tiles should do, right? |
@HarelM I have added 3 render tests. They do render the line correctly. They show up a bit odd for now, since the fill and background layers aren't supported yet, so the globe itself is still missing, but they can be updated once background/fill works too. |
I think @louwers is using either the globe or terrain folders to ignore parity for gender tests, can you use globe/terrain/... Or the other way around? |
Yes, they actually fit in nicely besides the existing globe+terrain test of the |
d98378c
to
67bf3b7
Compare
Context for this series of PRs
Towards
For the Globe with Terrain3D, I have been working on getting all the layers working.
These changes generally touches the
draw_[layer].ts
, and in rare cases the[layer]_program.ts
too.The fixes for these layers have each their own complexities. Luckily they can be reviewed and applied individually, which I think is the better way to go about it.
The
line
is the simplest, so I've tried to prepare a PR here with the bare minimum of changes needed to get it going.Support
line
layer on Globe with Terrain3DI set the ignoreGlobeMatrix flag in this case, to avoid applying the globeMatrix twice, since it's also applied to the Terrain3D.
Repro example using Liberty style from OpenFreeMap
Before
After
Launch Checklist
CHANGELOG.md
under the## main
section.