forked from MapComplete/MapComplete
Add cyclestreet theme, various bugfixes
This commit is contained in:
parent
72a744f60d
commit
60c15e9c8d
23 changed files with 412 additions and 211 deletions
|
@ -15,6 +15,7 @@ import * as bookcases from "../assets/themes/bookcases/Bookcases.json";
|
|||
import * as aed from "../assets/themes/aed/aed.json";
|
||||
import * as toilets from "../assets/themes/toilets/toilets.json";
|
||||
import * as artworks from "../assets/themes/artwork/artwork.json";
|
||||
import * as cyclestreets from "../assets/themes/cyclestreets/cyclestreets.json";
|
||||
import {PersonalLayout} from "../Logic/PersonalLayout";
|
||||
|
||||
export class AllKnownLayouts {
|
||||
|
@ -31,6 +32,7 @@ export class AllKnownLayouts {
|
|||
CustomLayoutFromJSON.LayoutFromJSON(aed),
|
||||
CustomLayoutFromJSON.LayoutFromJSON(toilets),
|
||||
CustomLayoutFromJSON.LayoutFromJSON(artworks),
|
||||
CustomLayoutFromJSON.LayoutFromJSON(cyclestreets),
|
||||
|
||||
new MetaMap(),
|
||||
new StreetWidth(),
|
||||
|
|
|
@ -135,6 +135,7 @@ export class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
this._questionElement = this.InputElementFor(options);
|
||||
const save = () => {
|
||||
const selection = self._questionElement.GetValue().data;
|
||||
console.log("Tagrendering: saving tags ", selection);
|
||||
if (selection) {
|
||||
State.state.changes.addTag(tags.data.id, selection);
|
||||
}
|
||||
|
@ -152,10 +153,10 @@ export class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
return "";
|
||||
}
|
||||
if (csCount < State.userJourney.tagsVisibleAndWikiLinked) {
|
||||
const tagsStr = tags.asHumanString(false);
|
||||
const tagsStr = tags.asHumanString(false, true);
|
||||
return new FixedUiElement(tagsStr).SetClass("subtle").Render();
|
||||
}
|
||||
return tags.asHumanString(true);
|
||||
return tags.asHumanString(true, true);
|
||||
}
|
||||
)
|
||||
);
|
||||
|
@ -318,7 +319,6 @@ export class TagRendering extends UIElement implements TagDependantUIElement {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return this._freeform !== undefined && this._source.data[this._freeform.key] !== undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue