Skip to content

Commit

Permalink
geosolutions-it#9396 Review annotations UI and system
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap committed Sep 6, 2023
1 parent ad38723 commit 19bd756
Show file tree
Hide file tree
Showing 116 changed files with 7,262 additions and 10,118 deletions.
2 changes: 1 addition & 1 deletion build/docma-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"plugins": [
"web/client/plugins/index.jsdoc",
"web/client/plugins/AddGroup.jsx",
"web/client/plugins/Annotations.jsx",
"web/client/plugins/Annotations/index.jsx",
"web/client/plugins/AutoMapUpdate.jsx",
"web/client/plugins/BackgroundSelector.jsx",
"web/client/plugins/BurgerMenu.jsx",
Expand Down
29 changes: 0 additions & 29 deletions docs/developer-guide/local-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,35 +241,6 @@ CSW service

<br>

#### Annotations Editor configuration

Annotations editor can be configured by setting it's defaultState. It looks like this:

```javascript
"defaultState": {
...
"annotations": {
"config": {
"geometryEditorOptions": {
"measureOptions": {
"displayUom": "nm"
}
},
"multiGeometry": true,
"validationErrors": {},
"defaultPointType": "symbol"
},
"format": "aeronautical",
"defaultTextAnnotation": "New"
},
```
- **format** - decimal or aeronautical degree for coordinates
- **defaultTextAnnotation** - default text value for text annotations
- **config.geometryEditorOptions** - properties to be passed to CoordinatesEditor of GeometryEditor. For more information refer to the documentation of CoordinatesEditor component
- **config.multiGeometry** - if set to true allows to add more then one geometry to annotations
- **config.defaultPointType** - default point type of marker geometry type. Can be 'marker' or 'symbol'
### projectionDefs configuration

Custom CRS can be configured here, at root level of localConfig.json file. For example:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
"@mapbox/togeojson": "0.16.0",
"@mapstore/patcher": "https://github.com/geosolutions-it/Patcher/tarball/master",
"@turf/along": "6.5.0",
"@turf/area": "6.5.0",
"@turf/bbox": "4.1.0",
"@turf/bbox-polygon": "5.1.5",
"@turf/boolean-clockwise": "6.5.0",
Expand Down
Loading

0 comments on commit 19bd756

Please sign in to comment.