diff --git a/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts b/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts index dcbc9c884275da..2b8047cdaf41f8 100644 --- a/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts +++ b/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts @@ -9,7 +9,7 @@ import type { SavedObject } from '@kbn/core/server'; import { asyncForEach } from '@kbn/std'; import { KBN_FIELD_TYPES } from '@kbn/field-types'; import { DataViewsService } from '@kbn/data-views-plugin/common'; -import { LAYER_TYPE, SCALING_TYPES, SOURCE_TYPES } from '../../../common/constants'; +import { SCALING_TYPES, SOURCE_TYPES } from '../../../common/constants'; import { injectReferences } from '../../../common/migrations/references'; import { ESGeoGridSourceDescriptor, @@ -107,14 +107,6 @@ export class IndexPatternStatsCollector { return false; } - if ( - layer.type !== LAYER_TYPE.GEOJSON_VECTOR && - layer.type !== LAYER_TYPE.BLENDED_VECTOR && - layer.type !== LAYER_TYPE.HEATMAP - ) { - return false; - } - const sourceDescriptor = layer.sourceDescriptor; if (sourceDescriptor.type === SOURCE_TYPES.ES_GEO_GRID) { return await this._isFieldGeoShape(