Skip to content

Commit

Permalink
edition config
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierSaintCyr committed Apr 24, 2024
1 parent 6ded4a7 commit f41a07d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"nbVisitToShowAgain": 30
},
"edition": {
"url": "/apis/inedit/"
"url": "http://localhost/"
},
"wakeLockApiButton": false,
"offlineButton": false,
Expand Down
49 changes: 49 additions & 0 deletions src/contexts/_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,55 @@
}
},
"layers": [
{
"title": "Montreal Parking Terminals",
"id": "parking",
"visible": true,
"editable": true,
"sourceOptions": {
"queryable": true,
"params": {
"featureTypes": "parking",
"fieldNameGeometry": "msGeometry",
"maxFeatures": 10000,
"version": "1.0.0"
},
"edition": {
"enabled": true,
"baseUrl": "parking_terminal_on_roads",
"addUrl": "",
"deleteUrl": "?id=eq.",
"modifyUrl": "?id=eq.",
"geomType": "Point",
"modifyButton": true,
"addWithDraw": false,
"hasGeometry": false
},
"sourceFields": [
{
"name": "id",
"primary": true,
"validation": {
"readonly": true
}
},
{
"name": "status"
},
{
"name": "roadname"
},
{
"name": "exploitationtype"
},
{
"name": "zonegroupcode"
}
],
"type": "wfs",
"url": "http://localhost:8080/?map=/etc/mapserver/parking.map"
}
},
{
"id": "fond_osm",
"title": "Open Street Map",
Expand Down

0 comments on commit f41a07d

Please sign in to comment.