Skip to content

Start using the Feature State API #994

@adrianababakanian

Description

@adrianababakanian

Currently, GL Draw does not utilize the Feature State API. Starting to use feature state would result in several benefits, such as:

  • Reduced flickering, which is currently caused by moving between "hot" and "cold" layers.
  • The ability to add hover effects to drawn features (as demonstrated in this example).
  • Reduced CPU usage, since queryRenderedFeatures would not need to be run for every mouse move.
  • A potential way to pass userProperties to midpoints and vertices (see Pass userProperties to midpoints and vertices  #964 for additional related discussion).

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiAPI & programatically working with libraryfeature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions