forked from MapComplete/MapComplete
Fix JOSM link
This commit is contained in:
parent
298b6efd42
commit
e09dfbf3f7
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ export default class Attribution extends Combine {
|
||||||
let editWithJosm = new VariableUiElement(
|
let editWithJosm = new VariableUiElement(
|
||||||
userDetails.map(userDetails => {
|
userDetails.map(userDetails => {
|
||||||
|
|
||||||
if (userDetails.csCount >= Constants.userJourney.tagsVisibleAndWikiLinked) {
|
if (userDetails.csCount < Constants.userJourney.tagsVisibleAndWikiLinked) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
const bounds: any = leafletMap?.data?.getBounds();
|
const bounds: any = leafletMap?.data?.getBounds();
|
||||||
|
@ -53,7 +53,7 @@ export default class Attribution extends Combine {
|
||||||
const josmLink = `http://127.0.0.1:8111/load_and_zoom?left=${left}&right=${right}&top=${top}&bottom=${bottom}`
|
const josmLink = `http://127.0.0.1:8111/load_and_zoom?left=${left}&right=${right}&top=${top}&bottom=${bottom}`
|
||||||
return new Link(Svg.josm_logo_ui().SetClass("small-image"), josmLink, true);
|
return new Link(Svg.josm_logo_ui().SetClass("small-image"), josmLink, true);
|
||||||
},
|
},
|
||||||
[location]
|
[location, leafletMap]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
super([mapComplete, reportBug, stats, editHere, editWithJosm, mapillary]);
|
super([mapComplete, reportBug, stats, editHere, editWithJosm, mapillary]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue