[Maps] use blended layer when linking discover to maps (#61467)

This commit is contained in:
Nathan Reese 2020-03-26 10:15:58 -06:00 committed by GitHub
parent aa7779f4d3
commit 9a53c08c3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,7 @@ export function getMapsAppUrl(
// create initial layer descriptor
const hasColumns = columns && columns.length && columns[0] !== '_source';
const supportsClustering = field.aggregatable;
mapAppParams.set(
'initialLayers',
// @ts-ignore
@ -97,9 +98,10 @@ export function getMapsAppUrl(
geoField: field.name,
tooltipProperties: hasColumns ? columns : [],
indexPatternId: indexPattern.id,
scalingType: supportsClustering ? 'CLUSTERS' : 'LIMIT',
},
visible: true,
type: 'VECTOR',
type: supportsClustering ? 'BLENDED_VECTOR' : 'VECTOR',
},
])
);