-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Visualize] fix tile_map visualization #154392
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7ee5e31
[Visualize] fix broken tile_map visualizations
nreese bcb6808
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 88f9de4
move registration to maps plugin
nreese 223299e
remove unused
nreese b913000
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine a36eaff
tslint
nreese be5dae7
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine d3216d2
add functional tests
nreese c1aa1cc
cleanup
nreese 59fbd4a
lens tslint
nreese d29c210
tslint
nreese 8e09421
remove .only
nreese 84ee479
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine e09f177
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 83af250
Merge branch 'main' into issue_154375
kibanamachine 9870cca
Merge branch 'main' into issue_154375
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
x-pack/plugins/maps/public/legacy_visualizations/tile_map/geo_hash.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| import { KBN_FIELD_TYPES } from '@kbn/field-types'; | ||
| import { BucketAggType, type IBucketAggConfig } from '@kbn/data-plugin/common'; | ||
|
|
||
| export const GEOHASH_GRID = 'geohash_grid'; | ||
|
|
||
| export const getGeoHashBucketAgg = () => | ||
| new BucketAggType<IBucketAggConfig>({ | ||
| name: GEOHASH_GRID, | ||
| expressionName: '', | ||
| title: GEOHASH_GRID, | ||
| makeLabel: () => GEOHASH_GRID, | ||
| params: [ | ||
| { | ||
| name: 'field', | ||
| type: 'field', | ||
| filterFieldTypes: KBN_FIELD_TYPES.GEO_POINT, | ||
| }, | ||
| ], | ||
| getRequestAggs(agg) { | ||
| return []; | ||
| }, | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| import expect from '@kbn/expect'; | ||
| import { FtrProviderContext } from '../../../ftr_provider_context'; | ||
|
|
||
| export default function ({ getPageObjects }: FtrProviderContext) { | ||
| const PageObjects = getPageObjects(['common', 'visualize', 'lens', 'maps', 'timePicker']); | ||
|
|
||
| describe('tile_map visualization', () => { | ||
| before(async () => { | ||
| await PageObjects.common.navigateToApp('visualize'); | ||
| await PageObjects.visualize.loadSavedVisualization('Visualization TileMap', { | ||
| navigateToVisualize: false, | ||
| }); | ||
| await PageObjects.timePicker.setAbsoluteRange( | ||
| PageObjects.timePicker.defaultStartTime, | ||
| PageObjects.timePicker.defaultEndTime | ||
| ); | ||
| await PageObjects.maps.waitForLayersToLoad(); | ||
| }); | ||
|
|
||
| it('should render tile_map with map embeddable', async () => { | ||
| await PageObjects.maps.openLegend(); | ||
| await PageObjects.maps.waitForLayersToLoad(); | ||
|
|
||
| expect(await PageObjects.maps.getNumberOfLayers()).to.eql(2); | ||
| expect(await PageObjects.maps.doesLayerExist('Visualization TileMap')).to.be(true); | ||
| }); | ||
| }); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.