Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Fix line label rendering glitch for overzoomed tiles #9865

Merged
merged 2 commits into from
Aug 25, 2017
Merged

Conversation

ChrisLoer
Copy link
Contributor

Fixes issue #9843, port of mapbox/mapbox-gl-js#5112.

Unfortunately, the tests are still ignored. The rendering is working, but the collision detection for overzoomed tiles is somewhat different between native and JS (and broken in both cases, see: mapbox/mapbox-gl-js#5095 and mapbox/mapbox-gl-js#5072). This should be addressed as part of the viewport collision refactoring.

@asheemmamoowala, you originally found this problem while playing with overzooming on native, so it would be nice if you could play around with the patch as well. I spent some time with the original "Figueroa St." case and everything seems to be working as expected.

/cc @anandthakker @asheemmamoowala @ansis

… doesn't always pick up the default type of 'double' from util::mag.
Ports fix for GL JS issue #5112.
Line label projection can't be based on tile geometry that's behind the plane of the camera.
The relevant tests are still ignored because the overzoomed collision behavior is different between native and JS.
Copy link
Contributor

@asheemmamoowala asheemmamoowala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original issue from #5112 is fixed.

I think as a result though, there are more label placements happening at the top end of a pitched view, and sometimes seeing overlap there:

screen shot 2017-08-25 at 1 27 25 pm
screen shot 2017-08-25 at 1 30 07 pm

@ChrisLoer
Copy link
Contributor Author

I think as a result though, there are more label placements happening at the top end of a pitched view, and sometimes seeing overlap there

Yeah, I'd file that under "collision detection doesn't work very well on overzoomed tiles". Working on it!

@ChrisLoer ChrisLoer merged commit 6cbeeff into master Aug 25, 2017
@ChrisLoer ChrisLoer deleted the cloer_9843 branch August 25, 2017 21:20
@kkaefer kkaefer added the Core The cross-platform C++ core, aka mbgl label Aug 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants