-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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] support term joins for Elasticsearch document source with vector tile scaling #129771
Conversation
@elasticmachine merge upstream |
Pinging @elastic/kibana-gis (Team:Geo) |
@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.
lgtm! this is a great feature. With vector tiles even a small dataset like world countries loads much faster.
code review and tested in chrome.
@@ -343,9 +343,21 @@ export class VectorStyle implements IVectorStyle { | |||
}); | |||
|
|||
dynamicProperties.forEach((key: VECTOR_STYLES) => { | |||
// TODO instead of looking up instance by key, update argument originalProperties to be instances instead of descriptors |
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 create an issue for this?
Hmm, I just noticed this error in console when switching from GeoJSON to MVT. It seems to only happen when I have multiple joins and click the "Accept" button to switch to a single join.
|
Same error also when switching between metrics |
Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
@elasticmachine merge upstream |
merge conflict between base and head |
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
History
To update your PR or re-run it, just comment with: |
…or tile scaling (elastic#129771) * support join configuration * set feature state * pluckStyleMetaFromFeatures * pluck style meta from joins * refactor * eslint * clear feature state on update * fit to bounds * remove unneeded cast * filter out features without join results * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * remove/add source if promoteId changes * hide all features when there are no results * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * disable layout styles * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * disable add join button * remove multiple term joins when switching to vector tiles * update scaling type in-product help * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * update chropleth wizard to use MVT scaling * clean up * i18n fixes * remove unused i18n tags * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * fix jest tests * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * tslint * fix jest test * add functional test * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * more jest fixes * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * Update x-pack/plugins/maps/public/actions/layer_actions.ts Co-authored-by: Nick Peihl <nickpeihl@gmail.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
…or tile scaling (elastic#129771) * support join configuration * set feature state * pluckStyleMetaFromFeatures * pluck style meta from joins * refactor * eslint * clear feature state on update * fit to bounds * remove unneeded cast * filter out features without join results * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * remove/add source if promoteId changes * hide all features when there are no results * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * disable layout styles * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * disable add join button * remove multiple term joins when switching to vector tiles * update scaling type in-product help * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * update chropleth wizard to use MVT scaling * clean up * i18n fixes * remove unused i18n tags * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * fix jest tests * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * tslint * fix jest test * add functional test * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * more jest fixes * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * Update x-pack/plugins/maps/public/actions/layer_actions.ts Co-authored-by: Nick Peihl <nickpeihl@gmail.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
Fixes #124227 and adds "Term join" support for "Vector tiles" scaling.
Why vector tiles? Much faster loading. Map on left uses vector tiles with joins. Map on right uses GeoJSON with joins. Notice the loading time.
https://user-images.githubusercontent.com/373691/162276074-865fb829-baed-4725-b196-bc10c274215f.mov
Testing
Limitations
There are several limitations to term join support with vector tiles
PR updates scaling types help to better define limitations of vector tiles and when to use "Limit results"