Various small fixes to presets, add slow roads to speelplekken-theme
This commit is contained in:
parent
a6c004d363
commit
f4a59d3a9e
9 changed files with 233 additions and 8 deletions
|
@ -25,6 +25,7 @@ import * as picnic_tables from "../assets/layers/benches/picnic_tables.json"
|
||||||
import * as play_forest from "../assets/layers/play_forest/play_forest.json"
|
import * as play_forest from "../assets/layers/play_forest/play_forest.json"
|
||||||
import * as playground from "../assets/layers/playground/playground.json"
|
import * as playground from "../assets/layers/playground/playground.json"
|
||||||
import * as sport_pitch from "../assets/layers/sport_pitch/sport_pitch.json"
|
import * as sport_pitch from "../assets/layers/sport_pitch/sport_pitch.json"
|
||||||
|
import * as slow_roads from "../assets/layers/slow_roads/slow_roads.json"
|
||||||
import LayerConfig from "./JSON/LayerConfig";
|
import LayerConfig from "./JSON/LayerConfig";
|
||||||
import {LayerConfigJson} from "./JSON/LayerConfigJson";
|
import {LayerConfigJson} from "./JSON/LayerConfigJson";
|
||||||
|
|
||||||
|
@ -58,7 +59,8 @@ export default class AllKnownLayers {
|
||||||
picnic_tables,
|
picnic_tables,
|
||||||
play_forest,
|
play_forest,
|
||||||
playground,
|
playground,
|
||||||
sport_pitch
|
sport_pitch,
|
||||||
|
slow_roads
|
||||||
];
|
];
|
||||||
|
|
||||||
// Must be below the list...
|
// Must be below the list...
|
||||||
|
|
|
@ -140,8 +140,20 @@ export interface LayerConfigJson {
|
||||||
* NB: if no presets are defined, the popup to add new points doesn't show up at all
|
* NB: if no presets are defined, the popup to add new points doesn't show up at all
|
||||||
*/
|
*/
|
||||||
presets?: {
|
presets?: {
|
||||||
|
/**
|
||||||
|
* The title - shown on the 'add-new'-button.
|
||||||
|
*/
|
||||||
title: string | any,
|
title: string | any,
|
||||||
|
/**
|
||||||
|
* The tags to add. It determines the icon too
|
||||||
|
*/
|
||||||
tags: string[],
|
tags: string[],
|
||||||
|
/**
|
||||||
|
* The _first sentence_ of the description is shown on the button of the `add` menu.
|
||||||
|
* The full description is shown in the confirmation dialog.
|
||||||
|
*
|
||||||
|
* (The first sentence is until the first '.'-character in the description)
|
||||||
|
*/
|
||||||
description?: string | any,
|
description?: string | any,
|
||||||
}[],
|
}[],
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { Utils } from "../Utils";
|
||||||
|
|
||||||
export default class Constants {
|
export default class Constants {
|
||||||
|
|
||||||
public static vNumber = "0.5.10";
|
public static vNumber = "0.5.11";
|
||||||
|
|
||||||
// The user journey states thresholds when a new feature gets unlocked
|
// The user journey states thresholds when a new feature gets unlocked
|
||||||
public static userJourney = {
|
public static userJourney = {
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
"playground=forest",
|
"playground=forest",
|
||||||
"fixme=Toegevoegd met MapComplete, geometry nog uit te tekenen"
|
"fixme=Toegevoegd met MapComplete, geometry nog uit te tekenen"
|
||||||
],
|
],
|
||||||
"description": "Een zone in het bos, duidelijk gemarkeerd als speelzone met de betreffende borden<br/><img src='./assets/layers/play_forest/icon.svg'/>"
|
"description": "Een zone in het bos, duidelijk gemarkeerd als speelzone met de overeenkomstige borden.<br/><img src='./assets/layers/play_forest/icon.svg'/>"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"wayHandling": 2
|
"wayHandling": 2
|
||||||
|
|
|
@ -79,6 +79,22 @@
|
||||||
"nl": "De ondergrond is <b>beton</b>",
|
"nl": "De ondergrond is <b>beton</b>",
|
||||||
"en": "The surface is <b>concrete</b>"
|
"en": "The surface is <b>concrete</b>"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "surface=unpaved",
|
||||||
|
"then": {
|
||||||
|
"nl": "De ondergrond is <b>onverhard</b>",
|
||||||
|
"en": "The surface is <b>unpaved</b>"
|
||||||
|
},
|
||||||
|
"hideInAnswer": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "surface=paved",
|
||||||
|
"then": {
|
||||||
|
"nl": "De ondergrond is <b>verhard</b>",
|
||||||
|
"en": "The surface is <b>paved</b>"
|
||||||
|
},
|
||||||
|
"hideInAnswer": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
178
assets/layers/slow_roads/slow_roads.json
Normal file
178
assets/layers/slow_roads/slow_roads.json
Normal file
|
@ -0,0 +1,178 @@
|
||||||
|
{
|
||||||
|
"id": "slow_roads",
|
||||||
|
"name": {
|
||||||
|
"nl": "Trage wegen"
|
||||||
|
},
|
||||||
|
"minzoom": 14,
|
||||||
|
"overpassTags": {
|
||||||
|
"or": [
|
||||||
|
"highway=pedestrian",
|
||||||
|
"highway=cycleway",
|
||||||
|
"highway=footway",
|
||||||
|
"highway=path",
|
||||||
|
"highway=bridleway",
|
||||||
|
"highway=living_street",
|
||||||
|
"highway=track"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"render": {
|
||||||
|
"nl": "Trage weg"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "name~*",
|
||||||
|
"then": {
|
||||||
|
"nl": "{name}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "highway=footway",
|
||||||
|
"then": {
|
||||||
|
"nl": "Voetpad"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "highway=cycleway",
|
||||||
|
"then": {
|
||||||
|
"nl": "Fietspad"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "highway=pedestrian",
|
||||||
|
"then": {
|
||||||
|
"nl": "Voetgangersstraat"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "highway=living_street",
|
||||||
|
"then": {
|
||||||
|
"nl": "Woonerf"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tagRenderings": [
|
||||||
|
"images",
|
||||||
|
{
|
||||||
|
"question": {
|
||||||
|
"nl": "Wat is de wegverharding van dit pad?"
|
||||||
|
},
|
||||||
|
"render": {
|
||||||
|
"nl": "De ondergrond is <b>{surface}</b>",
|
||||||
|
"en": "The surface is <b>{surface}</b>"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "surface"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "surface=grass",
|
||||||
|
"then": {
|
||||||
|
"nl": "De ondergrond is <b>gras</b>",
|
||||||
|
"en": "The surface is <b>grass</b>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "surface=ground",
|
||||||
|
"then": {
|
||||||
|
"nl": "De ondergrond is <b>aarde</b>",
|
||||||
|
"en": "The surface is <b>ground</b>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "surface=unpaved",
|
||||||
|
"then": {
|
||||||
|
"nl": "De ondergrond is <b>onverhard</b>",
|
||||||
|
"en": "The surface is <b>unpaved</b>"
|
||||||
|
},
|
||||||
|
"hideInAnswer": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "surface=sand",
|
||||||
|
"then": {
|
||||||
|
"nl": "De ondergrond is <b>zand</b>",
|
||||||
|
"en": "The surface is <b>sand</b>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "surface=paving_stones",
|
||||||
|
"then": {
|
||||||
|
"nl": "De ondergrond bestaat uit <b>stoeptegels</b>",
|
||||||
|
"en": "The surface is <b>paving stones</b>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "surface=asphalt",
|
||||||
|
"then": {
|
||||||
|
"nl": "De ondergrond is <b>asfalt</b>",
|
||||||
|
"en": "The surface is <b>asphalt</b>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "surface=concrete",
|
||||||
|
"then": {
|
||||||
|
"nl": "De ondergrond is <b>beton</b>",
|
||||||
|
"en": "The surface is <b>concrete</b>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "surface=paved",
|
||||||
|
"then": {
|
||||||
|
"nl": "De ondergrond is <b>verhard</b>",
|
||||||
|
"en": "The surface is <b>paved</b>"
|
||||||
|
},
|
||||||
|
"hideInAnswer": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"question": "Is deze weg 's nachts verlicht?",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "lit=yes",
|
||||||
|
"then": "'s nachts verlicht"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "lit=no",
|
||||||
|
"then": "Niet verlicht"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hideUnderlayingFeaturesMinPercentage": 0,
|
||||||
|
"icon": {
|
||||||
|
"render": "./assets/svg/bug.svg",
|
||||||
|
"mappings": []
|
||||||
|
},
|
||||||
|
"width": {
|
||||||
|
"render": "4"
|
||||||
|
},
|
||||||
|
"color": {
|
||||||
|
"render": "#bb2",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "highway=cycleway",
|
||||||
|
"then": "#00c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "highway=path",
|
||||||
|
"then": "#bb2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "highway=footway",
|
||||||
|
"then": "#c30"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "highway=pedestrian",
|
||||||
|
"then": "#3c3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "highway=living_street",
|
||||||
|
"then": "#ccc"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"presets": [
|
||||||
|
]
|
||||||
|
}
|
|
@ -187,8 +187,22 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"phone",
|
{
|
||||||
"email",
|
"question": "Wat is het telefoonnummer van de bevoegde dienst of uitbater?",
|
||||||
|
"freeform": {
|
||||||
|
"key": "phone",
|
||||||
|
"type": "phone"
|
||||||
|
},
|
||||||
|
"render": "<a href='tel:{phone}'>{phone}</a>"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"question": "Wat is het email-adres van de bevoegde dienst of uitbater?",
|
||||||
|
"freeform": {
|
||||||
|
"key": "email",
|
||||||
|
"type": "email"
|
||||||
|
},
|
||||||
|
"render": "<a href='mailto:{email}' target='_blank'>{email}</a>"
|
||||||
|
},
|
||||||
"questions",
|
"questions",
|
||||||
{"render":"{reviews(name, sportpitch)}"}
|
{"render":"{reviews(name, sportpitch)}"}
|
||||||
],
|
],
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
"startLat": 0,
|
"startLat": 0,
|
||||||
"startLon": 0,
|
"startLon": 0,
|
||||||
"startZoom": 1,
|
"startZoom": 1,
|
||||||
|
"hideInOverview": true,
|
||||||
"widenFactor": 0.05,
|
"widenFactor": 0.05,
|
||||||
"socialImage": "",
|
"socialImage": "",
|
||||||
"layers": [
|
"layers": [
|
||||||
|
|
|
@ -15,16 +15,18 @@
|
||||||
"maintainer": "MapComplete",
|
"maintainer": "MapComplete",
|
||||||
"icon": "./assets/layers/play_forest/icon.svg",
|
"icon": "./assets/layers/play_forest/icon.svg",
|
||||||
"hideInOverview": true,
|
"hideInOverview": true,
|
||||||
|
"lockLocation": true,
|
||||||
"version": "0",
|
"version": "0",
|
||||||
"startLat": 51.16174,
|
"startLat": 51.17174,
|
||||||
"startLon": 4.449462,
|
"startLon": 4.449462,
|
||||||
"startZoom": 13,
|
"startZoom": 12,
|
||||||
"widenFactor": 0.05,
|
"widenFactor": 0.05,
|
||||||
"socialImage": "",
|
"socialImage": "",
|
||||||
"layers": [
|
"layers": [
|
||||||
"play_forest",
|
"play_forest",
|
||||||
"playground",
|
"playground",
|
||||||
"sport_pitch"
|
"sport_pitch",
|
||||||
|
"slow_roads"
|
||||||
],
|
],
|
||||||
"roamingRenderings": []
|
"roamingRenderings": []
|
||||||
}
|
}
|
Loading…
Reference in a new issue