feat: make spatial entry optional and authoritative
This commit is contained in:
@@ -125,6 +125,7 @@ function WorkbenchApp({ username, loggingOut, onLogout }: WorkbenchAppProps): JS
|
||||
loadProjectData,
|
||||
createProject,
|
||||
createArea,
|
||||
activateMunicipality,
|
||||
archiveProject,
|
||||
resetProjectData,
|
||||
setSelectedProjectId,
|
||||
@@ -1014,6 +1015,11 @@ function WorkbenchApp({ username, loggingOut, onLogout }: WorkbenchAppProps): JS
|
||||
selectedMapDatasetId={selectedDataset && availableMapDatasets.some((dataset) => dataset.id === selectedDataset.id) ? selectedDataset.id : ''}
|
||||
selectedFeature={selectedMapFeature}
|
||||
onSelectMapArea={setSelectedMapAreaId}
|
||||
onActivateMunicipality={async (niscode) => {
|
||||
const area = await activateMunicipality(niscode)
|
||||
if (area) setSelectedMapAreaId(area.id)
|
||||
return area
|
||||
}}
|
||||
onSetContextSourceLabel={setMapContextSourceLabel}
|
||||
onSetContextLayerLabel={setMapContextLayerLabel}
|
||||
onOpenDatasetInMap={openDatasetInMap}
|
||||
|
||||
Reference in New Issue
Block a user