-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Move legend rendering to style property #53173
[Maps] Move legend rendering to style property #53173
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
ab4fe17
to
8b36eb4
Compare
@elasticmachine merge upstream |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is going to have lot of merge conflicts with #52957. That PR moves fetching of field formatters into the data request so they are sync when used during styling and setting feature state. Maybe we should get that pattern in before going forward with this PR
x-pack/legacy/plugins/maps/public/layers/styles/components/ranged_style_legend_row.js
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/maps/public/layers/styles/vector/properties/dynamic_color_property.js
Outdated
Show resolved
Hide resolved
…nc in vector_style
merged in #53311 locally. Needs to wait until that one merges. |
x-pack/legacy/plugins/maps/public/layers/styles/vector/components/legend/vector_style_legend.js
Show resolved
Hide resolved
x-pack/legacy/plugins/maps/public/layers/styles/vector/vector_style.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
code review
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
Moves legend-row rendering down to style-property. This sets the stage for implementing different legend-row based on style-type (e.g. for categorical styling).
It also moves field-meta retrieval into the style-property, so field-meta can be used when syncing with mapbox (e.g. field-meta will be required to create categorical style filters)