From 1d4a46b4fdb603bd605c1a3ff6a22f296c59afd1 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Tue, 29 Oct 2024 10:04:05 +0100 Subject: [PATCH] chore: remove ArcGIS Feature from map service options in external layer (#2977) ArcGIS Feature is not yet supported in the maps app, so we shouldn't yet let users add external layers of this type --- src/config/field-overrides/externalMapLayer.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/config/field-overrides/externalMapLayer.js b/src/config/field-overrides/externalMapLayer.js index ff522c3dd..af1f622ed 100644 --- a/src/config/field-overrides/externalMapLayer.js +++ b/src/config/field-overrides/externalMapLayer.js @@ -102,4 +102,17 @@ export default new Map([ }, }, ], + [ + 'mapService', + { + required: true, + component: props => { + const options = props.options.filter( + option => option.value !== 'ARCGIS_FEATURE' + ); + + return ; + }, + }, + ], ]);