Skip to content

Commit b691504

Browse files
fix typecheck
1 parent 2ab9fc0 commit b691504

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

x-pack/plugins/maps/public/classes/fields/es_agg_field.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ export class ESAggField implements IESAggField {
134134
supportsAutoDomain(): boolean {
135135
return true;
136136
}
137+
138+
canReadFromGeoJson(): boolean {
139+
return true;
140+
}
137141
}
138142

139143
export function esAggFieldsFactory(

x-pack/plugins/maps/public/classes/fields/top_term_percentage_field.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,8 @@ export class TopTermPercentageField implements IESAggField {
7979
canValueBeFormatted(): boolean {
8080
return false;
8181
}
82+
83+
canReadFromGeoJson(): boolean {
84+
return true;
85+
}
8286
}

x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_style_property.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class DynamicStyleProperty<T> extends AbstractStyleProperty<T>
193193
}
194194

195195
supportsMbFeatureState() {
196-
return this._field && this._field.canReadFromGeoJson();
196+
return !!this._field && this._field.canReadFromGeoJson();
197197
}
198198

199199
getFieldMetaOptions() {

0 commit comments

Comments
 (0)