More work
This commit is contained in:
parent
06f8cf7006
commit
b1ea986515
2 changed files with 13 additions and 5 deletions
|
@ -25,15 +25,16 @@ export default class PlantNetSpeciesSearch extends VariableUiElement {
|
|||
if (images.length === 0) {
|
||||
return null
|
||||
}
|
||||
return new UIEventSource({success: PlantNet.exampleResultPrunus}) /*/ UIEventSource.FromPromiseWithErr(PlantNet.query(images.slice(0,5))); //*/
|
||||
return UIEventSource.FromPromiseWithErr(PlantNet.query(images.slice(0,5)));
|
||||
})
|
||||
.map(result => {
|
||||
if (result === null) {
|
||||
return t.takeImages
|
||||
}
|
||||
if (result === undefined) {
|
||||
return new Loading(t.querying.Subs(images.data))
|
||||
}
|
||||
if (result === null) {
|
||||
return t.takeImages
|
||||
}
|
||||
|
||||
if (result["error"] !== undefined) {
|
||||
return t.error.Subs(<any>result).SetClass("alert")
|
||||
}
|
||||
|
|
|
@ -694,7 +694,14 @@
|
|||
"overviewVerify": "Please verify that correct species and link it to the tree",
|
||||
"querying": "Querying plantnet.org with {length} images",
|
||||
"seeInfo": "See more information about the species",
|
||||
"takeImages": "Take images of the tree to automatically detect the tree type"
|
||||
"takeImages": "Take images of the tree to automatically detect the tree type",
|
||||
"howTo":{
|
||||
"intro": "For optimal results,",
|
||||
"li0": "take a picture which show the tree in the center without much background",
|
||||
"li1": "take a picture which shows a single leaf",
|
||||
"li2": "take a picture which shows the bark",
|
||||
"li3": "take a picture of the flowers"
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"editing": "When you make a change to the map, this change is recorded on OpenStreetMap and is publicly available to anyone. A changeset made with MapComplete includes the following data: <ul><li>The changes you made</li><li>Your username</li><li>When this change is made</li><li>The theme you used while making the change</li><li>The language of the user interface</li><li>An indication of how close you were to changed objects. Other mappers can use this information to determine if a change was made based on survey or on remote research</li></ul> Please refer to <a href='https://wiki.osmfoundation.org/wiki/Privacy_Policy' target='_blank'>the privacy policy on OpenStreetMap.org</a> for detailed information. We'd like to remind you that you can use a fictional name when signing up.",
|
||||
|
|
Loading…
Reference in a new issue