diff --git a/assets/layers/aerialway/aerialway.json b/assets/layers/aerialway/aerialway.json index c956043b3..bc2427975 100644 --- a/assets/layers/aerialway/aerialway.json +++ b/assets/layers/aerialway/aerialway.json @@ -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", "render": { diff --git a/assets/png/license_info.json b/assets/png/license_info.json new file mode 100644 index 000000000..d5571eb0c --- /dev/null +++ b/assets/png/license_info.json @@ -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": [] + } +] \ No newline at end of file diff --git a/assets/png/oneway.png.license b/assets/png/oneway.png.license new file mode 100644 index 000000000..ed0288300 --- /dev/null +++ b/assets/png/oneway.png.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Pieter Vander Vennet +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/assets/png/oneway.svg.license b/assets/png/oneway.svg.license new file mode 100644 index 000000000..ed0288300 --- /dev/null +++ b/assets/png/oneway.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Pieter Vander Vennet +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/src/UI/Map/ShowDataLayer.ts b/src/UI/Map/ShowDataLayer.ts index 0b1e25595..33a00123a 100644 --- a/src/UI/Map/ShowDataLayer.ts +++ b/src/UI/Map/ShowDataLayer.ts @@ -250,12 +250,12 @@ class LineRenderingLayer { 'source': sourceId, 'layout': { 'symbol-placement': 'line', - 'symbol-spacing': 1, + 'symbol-spacing': 10, 'icon-allow-overlap': true, 'icon-rotation-alignment':'map', 'icon-pitch-alignment':'map', 'icon-image': imgId, - 'icon-size': 0.045, + 'icon-size': 0.055, 'visibility': 'visible' } }); @@ -347,7 +347,13 @@ class LineRenderingLayer { "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) {