diff --git a/src/bootstrap.tsx b/src/bootstrap.tsx index 71cb1b78..50898d99 100644 --- a/src/bootstrap.tsx +++ b/src/bootstrap.tsx @@ -766,6 +766,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 }