You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Runtime changes to text-field are not immediate #6820
On the current iOS release branch (dbfa8dc), changing the value of MGLStyleValue.textField (in this case, the language labels via #6819) is not reflected immediately on the map.
Instead, the labels go blank.
Zooming several levels (and triggering a [re]load?), then zooming back to the original zoom level will cause the labels to appear correctly at the original zoom level.
Panning outside of the viewport at the original zoom level (to an area that was not shown) will show the labels in those new areas.
changed the title [-]Runtime changes to a layer’s text field are not immediate[/-][+]Runtime changes to a layer’s layout properties are not immediate[/+]on Oct 26, 2016
The bug in this case is specific to text-field, not all properties.
GeometryTileWorker expects to be notified when the main thread has loaded additional glyphs which may be needed in order to proceed with symbol layout. However the notification mechanism, GeometryTileWorker::setPlacementConfig, is overloaded. Its primary purpose is to notify GeometryTileWorker when the camera changes in a way that affects label placement, such as rotating. In order to avoid needless updates for camera changes that don't affect placement, the provided value for PlacementConfig is compared against the last used value, and short circuited if unchanged. This short circuiting conflicts with the use of GeometryTileWorker::setPlacementConfig as a notification that new glyphs have been loaded. That needs to be a separate notification pathway.
changed the title [-]Runtime changes to a layer’s layout properties are not immediate[/-][+]Runtime changes to text-field are not immediate[/+]on Nov 3, 2016
Activity
1ec5 commentedon Oct 26, 2016
This might affect all layout properties, not just
text-field./cc @bsudekum @jfirebaugh
[-]Runtime changes to a layer’s text field are not immediate[/-][+]Runtime changes to a layer’s layout properties are not immediate[/+]1ec5 commentedon Nov 3, 2016
Given #6903, this is definitely affecting all layout properties on both iOS and Android. It’s a regression of #5701.
jfirebaugh commentedon Nov 3, 2016
The bug in this case is specific to
text-field, not all properties.GeometryTileWorkerexpects to be notified when the main thread has loaded additional glyphs which may be needed in order to proceed with symbol layout. However the notification mechanism,GeometryTileWorker::setPlacementConfig, is overloaded. Its primary purpose is to notifyGeometryTileWorkerwhen the camera changes in a way that affects label placement, such as rotating. In order to avoid needless updates for camera changes that don't affect placement, the provided value forPlacementConfigis compared against the last used value, and short circuited if unchanged. This short circuiting conflicts with the use ofGeometryTileWorker::setPlacementConfigas a notification that new glyphs have been loaded. That needs to be a separate notification pathway.[-]Runtime changes to a layer’s layout properties are not immediate[/-][+]Runtime changes to text-field are not immediate[/+]jfirebaugh commentedon Nov 4, 2016
Related issues: #2851, #2511. This has perpetually been a problematic area of the code.
Add regression test for mapbox/mapbox-gl-native#6820
Add regression test for mapbox/mapbox-gl-native#6820
Add regression test for mapbox/mapbox-gl-native#6820