Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[maps] clean up feature-state usage #155302

Closed
Tracked by #154870
nreese opened this issue Apr 19, 2023 · 2 comments
Closed
Tracked by #154870

[maps] clean up feature-state usage #155302

nreese opened this issue Apr 19, 2023 · 2 comments
Labels
discuss Feature:Maps impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:large Large Level of Effort Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas technical debt Improvement of the software architecture and operational architecture

Comments

@nreese
Copy link
Contributor

nreese commented Apr 19, 2023

Maplibre feature-state can be used for 2 use cases:

Maps currently uses both use cases. I propose only using feature state for data-joins, meaning, feature-state will only be used for adding data-joins properties to vector sources.

Reasons:

  1. Reduce code complexity and edge cases. Logic required to add values to feature-state and writing expressions to fetch values from feature-state is messy. The complexity exists on many levels. One is that only "paint" properties can use feature-state. Another is that geojson sources can add feature properties to feature-state while vector sources can not add feature properties to feature state.
  2. Maps application is not a good candidate for fast interactions use case. The fast interactions use case usually involves updating styling based on user interactions, for example, changing feature styling on hover. Maps does not perform this type of style updates on user interactions.
  3. Current implementation of fast interactions use case only supports Geojson sources. Geojson sources are no longer the default (as of 8.0). Maps long term goal is to only use vector tiles for elasticsearch data. Why maintain all this code complexity for a method that we are trying to move away from?
@nreese nreese added discuss Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas technical debt Improvement of the software architecture and operational architecture Feature:Maps labels Apr 19, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@ThomThomson ThomThomson added loe:large Large Level of Effort impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. labels Apr 19, 2023
@ThomThomson
Copy link
Contributor

Closing this as we will track in our icebox.

@ThomThomson ThomThomson closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Feature:Maps impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:large Large Level of Effort Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas technical debt Improvement of the software architecture and operational architecture
Projects
None yet
Development

No branches or pull requests

3 participants