diff --git a/src/bootstrap.tsx b/src/bootstrap.tsx index d0c8ff3ee..3af638abf 100644 --- a/src/bootstrap.tsx +++ b/src/bootstrap.tsx @@ -769,6 +769,7 @@ const renderApp = async () => { >(); const [, setRevision] = useState(0); + const [selected, setSelected] = useState(undefined); const gjFormat = useMemo(() => new OlFormatGeoJson(), []); @@ -104,8 +105,8 @@ export const EditFeatureGeometryToolbar: React.FC { @@ -221,10 +222,16 @@ export const EditFeatureGeometryToolbar: React.FC - + { + setSelected(value); + }} + > { allowedEditMode.includes('CREATE') ? } @@ -243,6 +250,7 @@ export const EditFeatureGeometryToolbar: React.FC } @@ -262,6 +270,7 @@ export const EditFeatureGeometryToolbar: React.FC }