forked from MapComplete/MapComplete
Fixed the build
This commit is contained in:
parent
560c8e1567
commit
cce9207a35
19 changed files with 183 additions and 29 deletions
|
@ -35,7 +35,7 @@ export class AllKnownLayouts {
|
|||
new Artworks(),
|
||||
new Smoothness(),
|
||||
new Groen(),
|
||||
|
||||
|
||||
/*
|
||||
new Toilets(),
|
||||
*/
|
||||
|
|
|
@ -2,6 +2,7 @@ import {Tag, TagsFilter} from "../Logic/TagsFilter";
|
|||
import {UIElement} from "../UI/UIElement";
|
||||
import {TagDependantUIElementConstructor} from "./UIElementConstructor";
|
||||
import {TagRenderingOptions} from "./TagRenderingOptions";
|
||||
import Translation from "../UI/i18n/Translation";
|
||||
|
||||
export interface Preset {
|
||||
tags: Tag[],
|
||||
|
@ -21,7 +22,7 @@ export class LayerDefinition {
|
|||
/***
|
||||
* This is shown under the 'add new' button to indicate what kind of feature one is adding.
|
||||
*/
|
||||
description: string | UIElement
|
||||
description: string | Translation
|
||||
|
||||
/**
|
||||
* These tags are added whenever a new point is added by the user on the map.
|
||||
|
@ -94,8 +95,8 @@ export class LayerDefinition {
|
|||
static WAYHANDLING_CENTER_AND_WAY = 2;
|
||||
|
||||
constructor(id: string, options: {
|
||||
name: string | UIElement,
|
||||
description: string | UIElement,
|
||||
name: string | Translation,
|
||||
description: string | Translation,
|
||||
presets: Preset[],
|
||||
icon: string,
|
||||
minzoom: number,
|
||||
|
|
|
@ -61,7 +61,7 @@ export default class BikeCafes extends LayerDefinition {
|
|||
return {
|
||||
color: "#00bb00",
|
||||
icon: {
|
||||
iconUrl: self.icon,
|
||||
iconUrl: "./assets/bike/cafe.svg",
|
||||
iconSize: [50, 50],
|
||||
iconAnchor: [25,50]
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ export default class BikeParkings extends LayerDefinition {
|
|||
return {
|
||||
color: "#00bb00",
|
||||
icon: {
|
||||
iconUrl: self.icon,
|
||||
iconUrl: "./assets/bike/parking.svg",
|
||||
iconSize: [50, 50],
|
||||
iconAnchor: [25,50]
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ export class ClimbingTree extends LayerDefinition {
|
|||
super("climbingtree");
|
||||
const t = Translations.t.climbingTrees.layer;
|
||||
this.title = new FixedText(t.title);
|
||||
const icon = "assets/walkbybrussels/tree.svg";
|
||||
const icon = "./assets/themes/nature/tree.svg";
|
||||
this.icon = icon;
|
||||
this.description = t.description;
|
||||
this.style = (tags) => {
|
||||
|
|
|
@ -54,7 +54,7 @@ export class DrinkingWater extends LayerDefinition {
|
|||
return {
|
||||
color: "#00bb00",
|
||||
icon: {
|
||||
iconUrl: self.icon,
|
||||
iconUrl: "./assets/bike/drinking_water.svg",
|
||||
iconSize: [50, 50],
|
||||
iconAnchor: [25,50]
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ export class ClimbingTrees extends Layout {
|
|||
4.3688,
|
||||
Translations.t.climbingTrees.layout.welcome
|
||||
);
|
||||
this.icon = "./assets/walkbybrussels/tree.svg"
|
||||
this.icon = "./assets/themes/nature/tree.svg"
|
||||
this.hideFromOverview = true;
|
||||
}
|
||||
}
|
|
@ -52,7 +52,7 @@ export class Groen extends Layout {
|
|||
"</small>"
|
||||
);
|
||||
|
||||
this.icon = "assets/groen.svg"
|
||||
this.icon = "./assets/groen.svg"
|
||||
this.locationContains = ["buurtnatuur.be"]
|
||||
this.socialImage = "assets/BuurtnatuurFront.jpg"
|
||||
this.description = "Met deze tool kan je natuur in je buurt in kaart brengen en meer informatie geven over je favoriete plekje"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import {Layout} from "../Layout";
|
||||
import * as Layer from "../Layers/Bookcases";
|
||||
import {Map} from "../Layers/Map";
|
||||
|
||||
export class MetaMap extends Layout{
|
||||
|
@ -15,6 +14,6 @@ export class MetaMap extends Layout{
|
|||
|
||||
" <h3>Open Map Map</h3>\n" +
|
||||
"This map is a map of physical maps, as known by OpenStreetMap.");
|
||||
this.icon = "assets/osm-logo-buggy-attr.svg"
|
||||
this.icon = "./assets/osm-logo-buggy-attr.svg"
|
||||
}
|
||||
}
|
|
@ -1,5 +1,4 @@
|
|||
import {Layout} from "../Layout";
|
||||
import * as Layer from "../Layers/Bookcases";
|
||||
import {Widths} from "../Layers/Widths";
|
||||
|
||||
export class StreetWidth extends Layout{
|
||||
|
@ -85,7 +84,7 @@ export class StreetWidth extends Layout{
|
|||
"<li>Laat toeristen verplicht parkeren onder het zand; een (fiets)taxi kan hen naar hun hotel brengen</li>" +
|
||||
"<li>Voorzie in elke straat enkele parkeerplaatsen voor kortparkeren. Zo kunnen leveringen, iemand afzetten,... gebeuren zonder dat er een fietspad of een straat geblokkeerd wordt</li>" +
|
||||
"</ul>");
|
||||
this.icon = "assets/bug.svg";
|
||||
this.icon = "./assets/bug.svg";
|
||||
this.enableSearch = false;
|
||||
this.enableUserBadge = false;
|
||||
this.enableAdd = false;
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
import {UIElement} from "../../UI/UIElement";
|
||||
import {TagRenderingOptions} from "../TagRenderingOptions";
|
||||
import Translation from "../../UI/i18n/Translation";
|
||||
|
||||
export default class FixedText extends TagRenderingOptions {
|
||||
constructor(category: string | UIElement) {
|
||||
constructor(category: string | Translation) {
|
||||
super({
|
||||
mappings: [
|
||||
{
|
||||
|
|
|
@ -2,11 +2,12 @@ import {And, Tag} from "../../Logic/TagsFilter";
|
|||
import {UIElement} from "../../UI/UIElement";
|
||||
import Translations from "../../UI/i18n/Translations";
|
||||
import {TagRenderingOptions} from "../TagRenderingOptions";
|
||||
import Translation from "../../UI/i18n/Translation";
|
||||
|
||||
|
||||
export class NameInline extends TagRenderingOptions{
|
||||
|
||||
constructor(category: string | UIElement ) {
|
||||
constructor(category: string | Translation ) {
|
||||
super({
|
||||
question: "",
|
||||
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es5",
|
||||
"sourceMap": true,
|
||||
"resolveJsonModule": true,
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue