Fix JOSM link

This commit is contained in:
Pieter Vander Vennet 2021-06-28 00:59:30 +02:00
parent 298b6efd42
commit e09dfbf3f7

View file

@ -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]);