diff --git a/assets/themes/openwindpowermap/license_info.json b/assets/themes/openwindpowermap/license_info.json new file mode 100644 index 000000000..1ca28a091 --- /dev/null +++ b/assets/themes/openwindpowermap/license_info.json @@ -0,0 +1,12 @@ +[ + { + "authors": [ + "Iconathon" + ], + "path": "wind_turbine.svg", + "license": "CC0", + "sources": [ + "https://commons.wikimedia.org/wiki/File:Wind_Turbine_(2076)_-_The_Noun_Project.svg" + ] + } +] \ No newline at end of file diff --git a/assets/themes/openwindpowermap/openwindpowermap.json b/assets/themes/openwindpowermap/openwindpowermap.json new file mode 100644 index 000000000..39c2baa41 --- /dev/null +++ b/assets/themes/openwindpowermap/openwindpowermap.json @@ -0,0 +1,165 @@ +{ + "id": "openwindpowermap", + "title": { + "en": "OpenWindPowerMap" + }, + "maintainer": "Seppe Santens", + "icon": "./assets/themes/openwindpowermap/wind_turbine.svg", + "description": { + "en": "A map for showing and editing wind turbines." + }, + "language": [ + "en" + ], + "version": "2021-06-18", + "startLat": 50.520, + "startLon": 4.643, + "startZoom": 8, + "clustering": { + "maxZoom": 8 + }, + "layers": [ + { + "id": "windturbine", + "name": { + "en": "wind turbine" + }, + "source": { + "osmTags": "generator:source=wind" + }, + "minzoom": 10, + "wayHandling": 1, + "title": { + "render": { + "en": "wind turbine" + }, + "mappings": [ + { + "if": "name~*", + "then": { + "en": "{name}" + } + } + ] + }, + "icon": "./assets/themes/openwindpowermap/wind_turbine.svg", + "iconSize": "40, 40, bottom", + "label": { + "mappings": [ + { + "if": "generator:output:electricity~^[0-9]+.*[W]$", + "then": "
{generator:output:electricity}
" + } + ] + }, + "tagRenderings": [ + { + "render": { + "en": "The power output of this wind turbine is {generator:output:electricity}." + }, + "question": { + "en": "What is the power output of this wind turbine? (e.g. 2.3 MW)" + }, + "freeform": { + "key": "generator:output:electricity" + } + }, + { + "render": { + "en": "This wind turbine is operated by {operator}." + }, + "question": { + "en": "Who operates this wind turbine?" + }, + "freeform": { + "key": "operator" + } + }, + { + "render": { + "en": "The total height (including rotor radius) of this wind turbine is {height} metres." + }, + "question": { + "en": "What is the total height of this wind turbine (including rotor radius), in metres?" + }, + "freeform": { + "key": "height", + "type": "float" + } + }, + { + "render": { + "en": "The rotor diameter of this wind turbine is {rotor:diameter} metres." + }, + "question": { + "en": "What is the rotor diameter of this wind turbine, in metres?" + }, + "freeform": { + "key": "rotor:diameter", + "type": "float" + } + }, + { + "render": { + "en": "This wind turbine went into operation on/in {start_date}." + }, + "question": { + "en": "When did this wind turbine go into operation?" + }, + "freeform": { + "key": "start_date", + "type": "date" + } + }, + "images" + ], + "presets": [ + { + "tags": [ + "power=generator", + "generator:source=wind" + ], + "title": { + "en": "wind turbine" + } + } + ] + } + ], + "units": [ + { + "appliesToKey": ["generator:output:electricity"], + "applicableUnits": [{ + "canonicalDenomination": "MW", + "alternativeDenomination": ["megawatts","megawatt"], + "human": { + "en": " megawatts", + "nl": " megawatt" + } + },{ + "canonicalDenomination": "kW", + "alternativeDenomination": ["kilowatts","kilowatt"], + "human": { + "en": " kilowatts", + "nl": " kilowatt" + } + },{ + "canonicalDenomination": "W", + "alternativeDenomination": ["watts","watt"], + "human": { + "en": " watts", + "nl": " watt" + } + },{ + "canonicalDenomination": "GW", + "alternativeDenomination": ["gigawatts","gigawatt"], + "human": { + "en": " gigawatts", + "nl": " gigawatt" + } + }], + "eraseInvalidValues": true + } + ], + "defaultBackgroundId": "CartoDB.Voyager" +} diff --git a/assets/themes/openwindpowermap/wind_turbine.svg b/assets/themes/openwindpowermap/wind_turbine.svg new file mode 100644 index 000000000..a388b8fae --- /dev/null +++ b/assets/themes/openwindpowermap/wind_turbine.svg @@ -0,0 +1,4 @@ + \ No newline at end of file