Skip to content

Commit 2f3c524

Browse files
[Maps] Use maximum grid_precision for super fine grid-resolution (#118625) (#118873)
Co-authored-by: Thomas Neirynck <[email protected]>
1 parent 64a4263 commit 2f3c524

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

x-pack/plugins/maps/server/mvt/get_grid_tile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function getEsGridTile({
3838
const path = `/${encodeURIComponent(index)}/_mvt/${geometryFieldName}/${z}/${x}/${y}`;
3939
const body = {
4040
size: 0, // no hits
41-
grid_precision: 7,
41+
grid_precision: 8,
4242
exact_bounds: false,
4343
extent: 4096, // full resolution,
4444
query: requestBody.query,

x-pack/test/api_integration/apis/maps/get_grid_tile.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function ({ getService }) {
3737
expect(clusterFeature.id).to.be(undefined);
3838
expect(clusterFeature.properties).to.eql({
3939
_count: 1,
40-
_key: '10/258/404',
40+
_key: '11/517/809',
4141
'avg_of_bytes.value': 9252,
4242
});
4343
expect(clusterFeature.loadGeometry()).to.eql([[{ x: 87, y: 667 }]]);
@@ -97,16 +97,16 @@ export default function ({ getService }) {
9797
expect(gridFeature.id).to.be(undefined);
9898
expect(gridFeature.properties).to.eql({
9999
_count: 1,
100-
_key: '10/258/404',
100+
_key: '11/517/809',
101101
'avg_of_bytes.value': 9252,
102102
});
103103
expect(gridFeature.loadGeometry()).to.eql([
104104
[
105-
{ x: 64, y: 672 },
105+
{ x: 80, y: 672 },
106106
{ x: 96, y: 672 },
107-
{ x: 96, y: 640 },
108-
{ x: 64, y: 640 },
109-
{ x: 64, y: 672 },
107+
{ x: 96, y: 656 },
108+
{ x: 80, y: 656 },
109+
{ x: 80, y: 672 },
110110
],
111111
]);
112112

x-pack/test/functional/apps/maps/mvt_geotile_grid.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,27 +98,27 @@ export default function ({ getPageObjects, getService }) {
9898
'case',
9999
['==', ['get', '_count'], null],
100100
0,
101-
['max', ['min', ['to-number', ['get', '_count']], 10], 1],
101+
['max', ['min', ['to-number', ['get', '_count']], 8], 1],
102102
],
103103
0,
104104
],
105105
0,
106106
'rgba(0,0,0,0)',
107107
1,
108108
'#ecf1f7',
109-
2.125,
109+
1.875,
110110
'#d9e3ef',
111-
3.25,
111+
2.75,
112112
'#c5d5e7',
113-
4.375,
113+
3.625,
114114
'#b2c7df',
115-
5.5,
115+
4.5,
116116
'#9eb9d8',
117-
6.625,
117+
5.375,
118118
'#8bacd0',
119-
7.75,
119+
6.25,
120120
'#769fc8',
121-
8.875,
121+
7.125,
122122
'#6092c0',
123123
],
124124
'fill-opacity': 0.75,

0 commit comments

Comments
 (0)