forked from MapComplete/MapComplete
Add metadata in changeset with (binned) distance to changed feature
This commit is contained in:
parent
e8ce53d5eb
commit
8e66313ef1
21 changed files with 178 additions and 41 deletions
|
@ -15,7 +15,7 @@ export default class AllThemesGui {
|
|||
try {
|
||||
|
||||
new FixedUiElement("").AttachTo("centermessage")
|
||||
const state = new UserRelatedState(undefined);
|
||||
const state = new UserRelatedState(undefined, undefined);
|
||||
const intro = new Combine([
|
||||
LanguagePicker.CreateLanguagePicker(Translations.t.index.title.SupportedLanguages())
|
||||
.SetClass("absolute top-2 right-3"),
|
||||
|
|
|
@ -95,7 +95,7 @@ export default class SplitRoadWizard extends Toggle {
|
|||
const points = splitPoints.data.map((f, i) => [f.feature, i])
|
||||
.filter(p => GeoOperations.distanceBetween(p[0].geometry.coordinates, coordinates) * 1000 < 5)
|
||||
.map(p => p[1])
|
||||
.sort()
|
||||
.sort((a, b) => a - b)
|
||||
.reverse()
|
||||
if (points.length > 0) {
|
||||
for (const point of points) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue