Merge branch 'develop' of github.com:pietervdvn/MapComplete into develop
This commit is contained in:
commit
a091f3b7b4
2 changed files with 11 additions and 1 deletions
|
@ -2,6 +2,14 @@
|
||||||
|
|
||||||
> Let a thousand flowers bloom
|
> Let a thousand flowers bloom
|
||||||
|
|
||||||
|
<p align=center>
|
||||||
|
<a href="https://liberapay.com/pietervdvn/">
|
||||||
|
<img src="https://img.shields.io/liberapay/patrons/Pietervdvn.svg?logo=liberapay">
|
||||||
|
<img src="https://img.shields.io/liberapay/receives/pietervdvn.svg?logo=liberapay">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
**MapComplete is an OpenStreetMap viewer and editor.** It shows map features on a certain topic, and allows to see, edit
|
**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
|
and add new features to the map. It can be seen as a
|
||||||
webversion [crossover of StreetComplete and MapContrib](Docs/MapComplete_vs_other_editors.md). It tries to be just as
|
webversion [crossover of StreetComplete and MapContrib](Docs/MapComplete_vs_other_editors.md). It tries to be just as
|
||||||
|
|
|
@ -30,6 +30,7 @@ import Img from "../Base/Img";
|
||||||
import FeaturePipelineState from "../../Logic/State/FeaturePipelineState";
|
import FeaturePipelineState from "../../Logic/State/FeaturePipelineState";
|
||||||
import Title from "../Base/Title";
|
import Title from "../Base/Title";
|
||||||
import {OsmConnection} from "../../Logic/Osm/OsmConnection";
|
import {OsmConnection} from "../../Logic/Osm/OsmConnection";
|
||||||
|
import {GeoOperations} from "../../Logic/GeoOperations";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shows the question element.
|
* Shows the question element.
|
||||||
|
@ -414,9 +415,10 @@ export default class TagRenderingQuestion extends Combine {
|
||||||
|
|
||||||
const tagsData = tags.data;
|
const tagsData = tags.data;
|
||||||
const feature = state.allElements.ContainingFeatures.get(tagsData.id)
|
const feature = state.allElements.ContainingFeatures.get(tagsData.id)
|
||||||
|
const center = GeoOperations.centerpointCoordinates(feature)
|
||||||
const input: InputElement<string> = ValidatedTextField.ForType(configuration.freeform.type).ConstructInputElement({
|
const input: InputElement<string> = ValidatedTextField.ForType(configuration.freeform.type).ConstructInputElement({
|
||||||
country: () => tagsData._country,
|
country: () => tagsData._country,
|
||||||
location: [tagsData._lat, tagsData._lon],
|
location: [center[1], center[0]],
|
||||||
mapBackgroundLayer: state.backgroundLayer,
|
mapBackgroundLayer: state.backgroundLayer,
|
||||||
unit: applicableUnit,
|
unit: applicableUnit,
|
||||||
args: configuration.freeform.helperArgs,
|
args: configuration.freeform.helperArgs,
|
||||||
|
|
Loading…
Reference in a new issue