-
Notifications
You must be signed in to change notification settings - Fork 444
Description
Description
Improve the functionality of the feature grid toolbar so that it supports the non-geospatial dataset too. It restricts some tools that uses map functionality like adding geometry, syncing with map, snapping, filtering with current viewport.
Improve editing for non-spatial dataset
- For the feature grid, expose a new selector (
hasNoGeometry) if there is no geometry field at all in the dataset -
hasSupportedGeometry- used for the restrictions in adding new feature inweb/client/components/data/featuregrid/toolbars/Toolbar.jsx- need to pass thehasNoGeometryso the visibility logic for the Add/Edit feature can be updated - Use the same selector:
- to show/hide only the necessary fields like we may need to hide the column where no geometry present is displayed
- to restrict some functionality like draw feature/geometry, sync map with filter, activate snapping, filter data by viewport, delete geometry
- only display Quit edit mode, Add new feature, Delete selected feature