[Maps] style icons by category#55747
Conversation
|
Pinging @elastic/kibana-gis (Team:Geo) |
|
|
|
I figured out the problem. I was not setting icon pixels for the fallback icon so the icon was missing. |
That will be fixed once Kibana upgrades to the next EUI version. There was a bug that got fixed yesterday preventing the passing of a className to the component. |
For this PR, pre-populating the custom icon set is out of scope. In the long term, yes, we want to provide a way to pre-populate the custom styling maps for the current field. This will effect color ramps and icon ramps. We need to work with design to get a good UI for this work flow. |
|
@elasticmachine merge upstream |
* dynamic icons * split symbols UI into 2 parts * static dynamic icon editor UI * rename style property symbolMarker to icon * add field select to dynamic icon form * icon map select component * create property classes for icon style property * dynamic icons from palette * changes * fix image problem * implement legend details * fix image-anchor setting for dynamic images * update functional test expect because of migration * fix jest tests * migrate SIEM style descriptors * modify IconSelect to show icon in input * fix jest test Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* dynamic icons * split symbols UI into 2 parts * static dynamic icon editor UI * rename style property symbolMarker to icon * add field select to dynamic icon form * icon map select component * create property classes for icon style property * dynamic icons from palette * changes * fix image problem * implement legend details * fix image-anchor setting for dynamic images * update functional test expect because of migration * fix jest tests * migrate SIEM style descriptors * modify IconSelect to show icon in input * fix jest test Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
💔 Build FailedHistory
To update your PR or re-run it, just comment with: |




Fixes #55204
This PR updates icon styling to allow by value styling that will assign different icons to each category
To support data driven styling, this PR migrates old style descriptor
to
This PR also ensures that
icon-anchoris properly set for dynamic icons. In the image below, there are 2 layers. The circles are just showing where the point is located. The icons show icons for the points. Notice that themarkericons are above the point while the star icons are centered on the point.This PR highlights the problem that each style is displayed independently in legend. For example, in the screen shot below users see both colors and icons in the legend. Fixing this issue is out of scope of this PR