-
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] Enable gridding/clustering/heatmaps for geo_shape fields #67886
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.js
Show resolved
Hide resolved
@@ -16,6 +16,7 @@ import { convertToLines } from './convert_to_lines'; | |||
import { AbstractESAggSource } from '../es_agg_source'; |
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.
Do we even want pew-pew source to support geo_shape geo_tile_grid aggregations? I think since the source is point to point it should not.
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.
geo_shape can contain points. Ideally, users would not have to know if they should be using geo_point
or geo_shape
. geo_shape
should always be the safe default choice imho. I think this is fine, but can remove.
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.
discussed in person. removed support for pew-pew sources. There's some edge-cases with regard to how pewpew sources collapse source-fields that are not being handled. Will add in separate PR.
x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.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.
Can you add a functional test to https://github.com/elastic/kibana/blob/master/x-pack/test/functional/apps/maps/es_geo_grid_source.js to test geo_grid on geo_shape field
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 is a great feature
LGTM
code review, tested in chrome
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…tic#67886) Enables heatmap, clusters, and grid layers for index-patterns with geo_shape field. This feature is only available for Gold+ users.
…) (#68537) Enables heatmap, clusters, and grid layers for index-patterns with geo_shape field. This feature is only available for Gold+ users.
Closes #2576, #56876
This does not include support for point-to-point sources. Will create follow-up issue for that.