This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Distant line-placed labels are illegible when top padding is large #15167
Labels
bug
Core
The cross-platform C++ core, aka mbgl
GL JS parity
For feature parity with Mapbox GL JS
text rendering
With certain combinations of aspect ratios, content insets, and pitch (tilt), distant line-placed labels toward the top of the map are scrunched up with insufficient pitch (letter spacing).
Illegible road labels from top to bottom: Linn St, Gest St, Plum St, Home Alley, Elm St, Race St, Central Ave, Vine St, Walnut St
Millbrook Dr, Cooper Rd, Este Ave, Vera Ave, Quatman Ave
W McMillan Ave, Warner St, Ravine St
Gest St, Egan Alley, Home Alley
Elsinore Ave, Celestial St, Monastery St, Eggleston Ave
Steps to reproduce
Apply this patch to iosapp and run on iPhone X:
Some styles like the Navigation Guidance Day v4 style seem to exacerbate the issue, but it can be observed in Streets too.
Diagnosis
This issue is most readily reproducible in tall views with a large top content inset. This can easily happen when the iOS navigation SDK runs on an iPhone X or on certain CarPlay units: mapbox/mapbox-navigation-ios#2184. The navigation SDK happens to apply a large top padding rather than a large top content inset when tracking the user’s location, in order to control the puck’s position, but the effect is the same.
On the surface, the issue would seem to be related to #15163. However, I think it’s actually that label size attenuation (mapbox/mapbox-gl-js#4547 mapbox/mapbox-gl-js#4781) doesn’t account for viewing distance (mapbox/mapbox-gl-js#5086), and the issue is exacerbated by the content inset, now that the map’s focal point is shifted lower.
Configuration
Mapbox SDK versions: v5.1.0 but not v5.0.0
iOS/macOS versions: iOS 12.2
Device/simulator models: CarPlay simulator with iPhone 8 simulator, iPhone X simulator
Xcode version: 10.2.1
/ref @mapbox/maps-ios @mapbox/gl-core @mapbox/navigation-ios @d-prukop
The text was updated successfully, but these errors were encountered: