From 86acf7e1f1f03333e3466e548bb4c92af4066031 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Thu, 26 Sep 2024 17:03:41 +0200 Subject: [PATCH 1/2] add config on accepted predictions --- .../Layout/Start/Prediction/EditableGeoJSON.js | 2 ++ .../src/components/Layout/Start/Prediction/Prediction.js | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/frontend/src/components/Layout/Start/Prediction/EditableGeoJSON.js b/frontend/src/components/Layout/Start/Prediction/EditableGeoJSON.js index 8303aae2..b5eb51fc 100644 --- a/frontend/src/components/Layout/Start/Prediction/EditableGeoJSON.js +++ b/frontend/src/components/Layout/Start/Prediction/EditableGeoJSON.js @@ -83,6 +83,7 @@ function getFeatureStyle(feature) { const EditableGeoJSON = ({ data, + config, setPredictions, mapref, predictionZoomlevel, @@ -191,6 +192,7 @@ const EditableGeoJSON = ({ config: {}, geom: polygon, training: trainingId, + config: config, }; const headers = { diff --git a/frontend/src/components/Layout/Start/Prediction/Prediction.js b/frontend/src/components/Layout/Start/Prediction/Prediction.js index 643590be..f68a7d3e 100644 --- a/frontend/src/components/Layout/Start/Prediction/Prediction.js +++ b/frontend/src/components/Layout/Start/Prediction/Prediction.js @@ -572,6 +572,15 @@ const Prediction = () => { {predictions && dataset && ( Date: Thu, 26 Sep 2024 17:16:52 +0200 Subject: [PATCH 2/2] Use consistent config wrt low case key for all --- .../components/Layout/Start/Prediction/Prediction.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/Layout/Start/Prediction/Prediction.js b/frontend/src/components/Layout/Start/Prediction/Prediction.js index f68a7d3e..27f35bf6 100644 --- a/frontend/src/components/Layout/Start/Prediction/Prediction.js +++ b/frontend/src/components/Layout/Start/Prediction/Prediction.js @@ -575,11 +575,11 @@ const Prediction = () => { config={{ confidence: confidence, tolerance: tolerance, - use_josm_q: use_josm_q, - areaThreshold: areaThreshold, - maxAngleChange: maxAngleChange, - skewTolerance: skewTolerance, - zoomLevel: predictionZoomlevel, + josmq: use_josm_q, + areathreshold: areaThreshold, + maxanglechange: maxAngleChange, + skewtolerance: skewTolerance, + zoomlevel: predictionZoomlevel, }} setPredictions={setPredictions} modelId={id}