From 1a40ef53d8404a2796a70fdda80cee5d65b30dbf Mon Sep 17 00:00:00 2001 From: Vijayan Balasubramanian Date: Tue, 6 Dec 2022 10:10:00 -0800 Subject: [PATCH] Update basic layer settings (#107) * Add type to layer settings * Add description to layer settings * Update to Zoom levels Signed-off-by: Vijayan Balasubramanian --- .../layer_config/layer_basic_settings.tsx | 16 +++++++++++++++- maps_dashboards/public/model/layersFunctions.ts | 7 ++++++- maps_dashboards/public/model/mapLayerType.ts | 2 ++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/maps_dashboards/public/components/layer_config/layer_basic_settings.tsx b/maps_dashboards/public/components/layer_config/layer_basic_settings.tsx index 7b3553c1..fe8189ae 100644 --- a/maps_dashboards/public/components/layer_config/layer_basic_settings.tsx +++ b/maps_dashboards/public/components/layer_config/layer_basic_settings.tsx @@ -11,6 +11,7 @@ import { EuiFormRow, EuiRange, EuiFormLabel, + EuiTextArea, } from '@elastic/eui'; import { MapLayerSpecification } from '../../model/mapLayerType'; import { @@ -20,6 +21,7 @@ import { MAP_LAYER_DEFAULT_MAX_OPACITY, MAP_LAYER_DEFAULT_OPACITY_STEP, } from '../../../common'; +import { layersTypeNameMap } from '../../model/layersFunctions'; interface Props { selectedLayerConfig: MapLayerSpecification; @@ -39,12 +41,24 @@ export const LayerBasicSettings = ({ selectedLayerConfig, setSelectedLayerConfig setSelectedLayerConfig({ ...selectedLayerConfig, name: String(e.target.value) }); }; + const onDescriptionChange = (e: any) => { + setSelectedLayerConfig({ ...selectedLayerConfig, description: String(e.target.value) }); + }; + return ( + + + - + + + + + +