From c25e2d6ca02d5c56d3366df1762e54e348cc5d54 Mon Sep 17 00:00:00 2001 From: Vijayan Balasubramanian Date: Fri, 4 Aug 2023 11:55:15 -0700 Subject: [PATCH] Allow filtering geoshape fields around map extent From 2.9, geoshape supports geo bounding box. Hence, remove the constraint that disables geo bounding box for non geopoint fields. Signed-off-by: Vijayan Balasubramanian --- .../layer_config/documents_config/document_layer_source.tsx | 1 - public/model/layerRenderController.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/public/components/layer_config/documents_config/document_layer_source.tsx b/public/components/layer_config/documents_config/document_layer_source.tsx index 80b204a5..260def0f 100644 --- a/public/components/layer_config/documents_config/document_layer_source.tsx +++ b/public/components/layer_config/documents_config/document_layer_source.tsx @@ -355,7 +355,6 @@ export const DocumentLayerSource = ({ { const geoField = mapLayer.source.geoFieldName; - const geoFieldType = mapLayer.source.geoFieldType; // geo bounding box query supports geo_point fields const mapBounds: GeoBounds = getBounds(maplibreRef.current!); const meta: FilterMeta = { alias: null, - disabled: !mapLayer.source.useGeoBoundingBoxFilter || geoFieldType !== 'geo_point', + disabled: !mapLayer.source.useGeoBoundingBoxFilter, negate: false, type: FILTERS.GEO_BOUNDING_BOX, };