Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
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

Closed

Description

@friedbunny

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.

asdf

/cc @boundsj @1ec5 @ivovandongen

Activity

  1. added
    iOS
    on Oct 26, 2016
  2. added this to the ios-v3.4.0 milestone on Oct 26, 2016
  3. 1ec5 commented on Oct 26, 2016

    @1ec5
    Contributor

    This might affect all layout properties, not just text-field.

    /cc @bsudekum @jfirebaugh

  4. 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
  5. added
    Core
    and removed
    iOS
    on Nov 3, 2016
  6. 1ec5 commented on Nov 3, 2016

    @1ec5
    Contributor

    Given #6903, this is definitely affecting all layout properties on both iOS and Android. It’s a regression of #5701.

  7. self-assigned this
    on Nov 3, 2016
  8. jfirebaugh commented on Nov 3, 2016

    @jfirebaugh
    Contributor

    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.

  9. 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
  10. jfirebaugh commented on Nov 4, 2016

    @jfirebaugh
    Contributor

    Related issues: #2851, #2511. This has perpetually been a problematic area of the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Corebugruntime styling

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions