Skip to content

Commit

Permalink
Merge pull request #281 from hotosm/feat/add-user-in-approved-prediction
Browse files Browse the repository at this point in the history
Enhance : Add config to accepted features
  • Loading branch information
kshitijrajsharma authored Sep 26, 2024
2 parents 3a8bec2 + 8023e1a commit f1a788e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function getFeatureStyle(feature) {

const EditableGeoJSON = ({
data,
config,
setPredictions,
mapref,
predictionZoomlevel,
Expand Down Expand Up @@ -191,6 +192,7 @@ const EditableGeoJSON = ({
config: {},
geom: polygon,
training: trainingId,
config: config,
};

const headers = {
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/components/Layout/Start/Prediction/Prediction.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,15 @@ const Prediction = () => {
{predictions && dataset && (
<EditableGeoJSON
data={predictions}
config={{
confidence: confidence,
tolerance: tolerance,
josmq: use_josm_q,
areathreshold: areaThreshold,
maxanglechange: maxAngleChange,
skewtolerance: skewTolerance,
zoomlevel: predictionZoomlevel,
}}
setPredictions={setPredictions}
modelId={id}
trainingId={modelInfo.trainingId}
Expand Down

0 comments on commit f1a788e

Please sign in to comment.