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.

Tile reload with changing symbol positions triggers cross-fade #10536

Closed

Description

@ChrisLoer

Native equivalent of: mapbox/mapbox-gl-js#5716.

The problem here is that if a tile reload changes symbol positions (the example in the bug report uses setData to change the location of an icon), the CrossTileSymbolIndex can't track that it's the same symbol, and a cross-fade gets triggered.

The current JS fix just skips animation when tiles get reloaded, although the approach will need modification to work with the native logic that allows an updated tile to be rendered before placement occurs.

It will make the logic in CrossTileSymbolIndex more complicated, but it occurs to me that the "cross-tile" part isn't a requirement here, which means we can probably use things like the feature ID to detect duplicates? Maybe we could add some special update logic for replacing an existing tile that uses feature IDs to detect duplicates first?

This bug is in master but hasn't yet been publicly released.

/cc @ansis @jfirebaugh

Activity

  1. added
    release blocker
    on Nov 22, 2017
  2. added
    Core
    on Nov 24, 2017
  3. ChrisLoer commented on Jan 10, 2018

    @ChrisLoer
    ContributorAuthor

    This will be fixed by #10899 (with the caveat that we still can't handle seamless animations across tile boundaries).

  4. ChrisLoer commented on Jan 11, 2018

    @ChrisLoer
    ContributorAuthor

    I think this was really just a duplicate, fixed by @ansis in #10899. Handling animations across tile boundaries can go in a new issue if we need to address it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Corerelease blocker

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions