-
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] Add suggest EMS layer utility #94969
[Maps] Add suggest EMS layer utility #94969
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
const url = emsFileLayer.getDefaultFormatUrl(); | ||
|
||
try { | ||
const emsJson = await fetchGeoJson( |
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.
Should we put these geojson files into some kind of cache so they are not re-fetched everything time the method is run?
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 offline. Will push cashing logic in the ems-client. This will also simplify the geojson-fetching in general, pushing format-conversion (if any) into the ems-client as well. cf. elastic/ems-client#60
x-pack/plugins/maps/public/ems_autosuggest/ems_autosuggest.test.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/ems_autosuggest/ems_autosuggest.test.ts
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 SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Adds
suggestEMSTermJoinConfig
utility to MapsPlugin.Based on some sample-values, will suggest a layer and column from EMS that can be used for choropleth mapping.
This is ready for a first look, but this is just a first proposal on how this could work. Tried to keep it simple as a first pass.
Checklist
Delete any items that are not applicable to this PR.
For maintainers