mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Co-authored-by: Thomas Neirynck <thomas@elastic.co>
This commit is contained in:
parent
64a426320f
commit
2f3c5249ef
3 changed files with 15 additions and 15 deletions
|
@ -38,7 +38,7 @@ export async function getEsGridTile({
|
|||
const path = `/${encodeURIComponent(index)}/_mvt/${geometryFieldName}/${z}/${x}/${y}`;
|
||||
const body = {
|
||||
size: 0, // no hits
|
||||
grid_precision: 7,
|
||||
grid_precision: 8,
|
||||
exact_bounds: false,
|
||||
extent: 4096, // full resolution,
|
||||
query: requestBody.query,
|
||||
|
|
|
@ -37,7 +37,7 @@ export default function ({ getService }) {
|
|||
expect(clusterFeature.id).to.be(undefined);
|
||||
expect(clusterFeature.properties).to.eql({
|
||||
_count: 1,
|
||||
_key: '10/258/404',
|
||||
_key: '11/517/809',
|
||||
'avg_of_bytes.value': 9252,
|
||||
});
|
||||
expect(clusterFeature.loadGeometry()).to.eql([[{ x: 87, y: 667 }]]);
|
||||
|
@ -97,16 +97,16 @@ export default function ({ getService }) {
|
|||
expect(gridFeature.id).to.be(undefined);
|
||||
expect(gridFeature.properties).to.eql({
|
||||
_count: 1,
|
||||
_key: '10/258/404',
|
||||
_key: '11/517/809',
|
||||
'avg_of_bytes.value': 9252,
|
||||
});
|
||||
expect(gridFeature.loadGeometry()).to.eql([
|
||||
[
|
||||
{ x: 64, y: 672 },
|
||||
{ x: 80, y: 672 },
|
||||
{ x: 96, y: 672 },
|
||||
{ x: 96, y: 640 },
|
||||
{ x: 64, y: 640 },
|
||||
{ x: 64, y: 672 },
|
||||
{ x: 96, y: 656 },
|
||||
{ x: 80, y: 656 },
|
||||
{ x: 80, y: 672 },
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ export default function ({ getPageObjects, getService }) {
|
|||
'case',
|
||||
['==', ['get', '_count'], null],
|
||||
0,
|
||||
['max', ['min', ['to-number', ['get', '_count']], 10], 1],
|
||||
['max', ['min', ['to-number', ['get', '_count']], 8], 1],
|
||||
],
|
||||
0,
|
||||
],
|
||||
|
@ -106,19 +106,19 @@ export default function ({ getPageObjects, getService }) {
|
|||
'rgba(0,0,0,0)',
|
||||
1,
|
||||
'#ecf1f7',
|
||||
2.125,
|
||||
1.875,
|
||||
'#d9e3ef',
|
||||
3.25,
|
||||
2.75,
|
||||
'#c5d5e7',
|
||||
4.375,
|
||||
3.625,
|
||||
'#b2c7df',
|
||||
5.5,
|
||||
4.5,
|
||||
'#9eb9d8',
|
||||
6.625,
|
||||
5.375,
|
||||
'#8bacd0',
|
||||
7.75,
|
||||
6.25,
|
||||
'#769fc8',
|
||||
8.875,
|
||||
7.125,
|
||||
'#6092c0',
|
||||
],
|
||||
'fill-opacity': 0.75,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue