forked from MapComplete/MapComplete
Add licenses, more questions
This commit is contained in:
parent
43f9afc3ba
commit
08fb66e421
5 changed files with 59 additions and 3 deletions
|
@ -106,6 +106,34 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "duration",
|
||||||
|
"question": {
|
||||||
|
"en": "How long takes a single journey with this elevator?"
|
||||||
|
},
|
||||||
|
"questionHint": {
|
||||||
|
"en": "This excludes the waiting time."
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "duration"
|
||||||
|
},
|
||||||
|
"render": {
|
||||||
|
"en": "A single journey takes {duration} minutes"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "occupancy",
|
||||||
|
"freeform": {
|
||||||
|
"key": "aerialway:occupancy"
|
||||||
|
},
|
||||||
|
"question": {
|
||||||
|
"en": "How many people fit a single carriage?"
|
||||||
|
},
|
||||||
|
"render": {
|
||||||
|
"en": "{aerialway:occupancy} people fit a single carriage"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"opening_hours",
|
||||||
{
|
{
|
||||||
"id": "length",
|
"id": "length",
|
||||||
"render": {
|
"render": {
|
||||||
|
|
18
assets/png/license_info.json
Normal file
18
assets/png/license_info.json
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": "oneway.png",
|
||||||
|
"license": "CC0-1.0",
|
||||||
|
"authors": [
|
||||||
|
"Pieter Vander Vennet"
|
||||||
|
],
|
||||||
|
"sources": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "oneway.svg",
|
||||||
|
"license": "CC0-1.0",
|
||||||
|
"authors": [
|
||||||
|
"Pieter Vander Vennet"
|
||||||
|
],
|
||||||
|
"sources": []
|
||||||
|
}
|
||||||
|
]
|
2
assets/png/oneway.png.license
Normal file
2
assets/png/oneway.png.license
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SPDX-FileCopyrightText: Pieter Vander Vennet
|
||||||
|
SPDX-License-Identifier: CC0-1.0
|
2
assets/png/oneway.svg.license
Normal file
2
assets/png/oneway.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SPDX-FileCopyrightText: Pieter Vander Vennet
|
||||||
|
SPDX-License-Identifier: CC0-1.0
|
|
@ -250,12 +250,12 @@ class LineRenderingLayer {
|
||||||
'source': sourceId,
|
'source': sourceId,
|
||||||
'layout': {
|
'layout': {
|
||||||
'symbol-placement': 'line',
|
'symbol-placement': 'line',
|
||||||
'symbol-spacing': 1,
|
'symbol-spacing': 10,
|
||||||
'icon-allow-overlap': true,
|
'icon-allow-overlap': true,
|
||||||
'icon-rotation-alignment':'map',
|
'icon-rotation-alignment':'map',
|
||||||
'icon-pitch-alignment':'map',
|
'icon-pitch-alignment':'map',
|
||||||
'icon-image': imgId,
|
'icon-image': imgId,
|
||||||
'icon-size': 0.045,
|
'icon-size': 0.055,
|
||||||
'visibility': 'visible'
|
'visibility': 'visible'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -347,7 +347,13 @@ class LineRenderingLayer {
|
||||||
"line-cap": "round",
|
"line-cap": "round",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
this.addSymbolLayer(this._layername)
|
|
||||||
|
if(this._layername.startsWith("mapcomplete_ski_piste") || this._layername.startsWith("mapcomplete_aerialway")){
|
||||||
|
// TODO FIXME properly enable this so that more layers can use this if appropriate
|
||||||
|
this.addSymbolLayer(this._layername)
|
||||||
|
}else{
|
||||||
|
console.log("No oneway arrow for", this._layername)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
for (const feature of features) {
|
for (const feature of features) {
|
||||||
|
|
Loading…
Reference in a new issue