From cce838669f70a4826186d0b929bc1715db2be64b Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 1 May 2022 23:17:41 +0200 Subject: [PATCH 1/2] Add liberapay shields --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index ae266060b..53687f0bc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,14 @@ # MapComplete > Let a thousand flowers bloom + +

+ + + + +

+ **MapComplete is an OpenStreetMap viewer and editor.** It shows map features on a certain topic, and allows to see, edit and add new features to the map. It can be seen as a From 3f5a166f86d73e6c60671916a7672b38dff24853 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 1 May 2022 23:29:40 +0200 Subject: [PATCH 2/2] Change centerpoint from _lat, _lon to calculated centerpoint, fixes #738 --- UI/Popup/TagRenderingQuestion.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/Popup/TagRenderingQuestion.ts b/UI/Popup/TagRenderingQuestion.ts index ff38b2f43..abec9ec6c 100644 --- a/UI/Popup/TagRenderingQuestion.ts +++ b/UI/Popup/TagRenderingQuestion.ts @@ -30,6 +30,7 @@ import Img from "../Base/Img"; import FeaturePipelineState from "../../Logic/State/FeaturePipelineState"; import Title from "../Base/Title"; import {OsmConnection} from "../../Logic/Osm/OsmConnection"; +import {GeoOperations} from "../../Logic/GeoOperations"; /** * Shows the question element. @@ -414,9 +415,10 @@ export default class TagRenderingQuestion extends Combine { const tagsData = tags.data; const feature = state.allElements.ContainingFeatures.get(tagsData.id) + const center = GeoOperations.centerpointCoordinates(feature) const input: InputElement = ValidatedTextField.ForType(configuration.freeform.type).ConstructInputElement({ country: () => tagsData._country, - location: [tagsData._lat, tagsData._lon], + location: [center[1], center[0]], mapBackgroundLayer: state.backgroundLayer, unit: applicableUnit, args: configuration.freeform.helperArgs,