File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
x-pack/plugins/maps/server/mvt Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -336,22 +336,19 @@ export async function getTile({
336336 const fieldNames = new Set < string > ( ) ;
337337 features . forEach ( ( feature ) => {
338338 for ( const key in feature . properties ) {
339- if ( feature . properties . hasOwnProperty ( key ) && key !== 'key' && key !== 'gridCentroid' ) {
339+ if (
340+ feature . properties . hasOwnProperty ( key ) &&
341+ key !== '_index' &&
342+ key !== '_id' &&
343+ key !== FEATURE_ID_PROPERTY_NAME
344+ ) {
340345 fieldNames . add ( key ) ;
341346 }
342347 }
343348 } ) ;
344349
345350 const fieldMeta : FieldMeta = { } ;
346351 fieldNames . forEach ( ( fieldName : string ) => {
347- if (
348- fieldName === '_index' ||
349- fieldName === '_id' ||
350- fieldName === FEATURE_ID_PROPERTY_NAME
351- ) {
352- return ;
353- }
354-
355352 const rangeMeta = pluckRangeFieldMeta ( features , fieldName , ( rawValue : unknown ) => {
356353 return typeof rawValue === 'number' ? rawValue : NaN ;
357354 } ) ;
You can’t perform that action at this time.
0 commit comments