forked from MapComplete/MapComplete
Add in a small hackerspace theme
This commit is contained in:
parent
725b4f35e1
commit
c15541eddb
2 changed files with 175 additions and 1 deletions
|
@ -1,10 +1,10 @@
|
|||
import BaseUIElement from "../BaseUIElement";
|
||||
import * as L from "leaflet";
|
||||
import {Map} from "leaflet";
|
||||
import {UIEventSource} from "../../Logic/UIEventSource";
|
||||
import Loc from "../../Models/Loc";
|
||||
import BaseLayer from "../../Models/BaseLayer";
|
||||
import AvailableBaseLayers from "../../Logic/Actors/AvailableBaseLayers";
|
||||
import {Map} from "leaflet";
|
||||
import {Utils} from "../../Utils";
|
||||
|
||||
export default class Minimap extends BaseUIElement {
|
||||
|
|
174
assets/themes/hackerspaces/hackerspaces.json
Normal file
174
assets/themes/hackerspaces/hackerspaces.json
Normal file
|
@ -0,0 +1,174 @@
|
|||
{
|
||||
"id": "hackerspaces",
|
||||
"title": {
|
||||
"en": "Hackerspaces"
|
||||
},
|
||||
"shortDescription": {
|
||||
"en": "A map of hackerspaces"
|
||||
},
|
||||
"description": {
|
||||
"en": "On this map you can see hackerspaces, add a new hackerspace or update data directly"
|
||||
},
|
||||
"language": [
|
||||
"en"
|
||||
],
|
||||
"maintainer": "",
|
||||
"icon": "./assets/themes/hackerspaces/glider.svg",
|
||||
"version": "0",
|
||||
"startLat": 0,
|
||||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 0.05,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
{
|
||||
"id": "hackerspaces",
|
||||
"name": {
|
||||
"en": "Hackerspace"
|
||||
},
|
||||
"minzoom": 8,
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Hackerspace"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"name~*"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"en": " {name}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"description": {
|
||||
"en": "Hackerspace"
|
||||
},
|
||||
"tagRenderings": [
|
||||
{
|
||||
"question": {
|
||||
"en": "Does this hackerspace serve Club Mate?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"drink:club-mate=yes"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"en": "This hackerspace serves club mate"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"drink:club-mate=no"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"en": "This hackerspace is not worthy of the name hackerspace as it does not serve club mate"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"render": {
|
||||
"en": "This hackerspace was founded at {start_date}"
|
||||
},
|
||||
"question": {
|
||||
"en": "When was this hackerspace founded?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "start_date",
|
||||
"type": "date"
|
||||
}
|
||||
},
|
||||
{
|
||||
"question": {
|
||||
"en": "When is this hackerspace opened?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "opening_hours",
|
||||
"type": "opening_hours"
|
||||
},
|
||||
"render": {
|
||||
"en": "{opening_hours_table()}"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"opening_hours=24/7"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"en": "Opened 24/7"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"icon": {
|
||||
"render": "./assets/themes/hackerspaces/glider.svg",
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"hackerspace=makerspace"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"en": "./assets/themes/hackerspaces/led.png"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"width": {
|
||||
"render": "8"
|
||||
},
|
||||
"iconSize": {
|
||||
"render": "40,40,center"
|
||||
},
|
||||
"color": {
|
||||
"render": "#00f"
|
||||
},
|
||||
"presets": [
|
||||
{
|
||||
"tags": [
|
||||
"leisure=hackerspace"
|
||||
],
|
||||
"title": {
|
||||
"en": "Hackerspace"
|
||||
},
|
||||
"description": {
|
||||
"en": "A hackerspace is an area where people interested in software gather"
|
||||
}
|
||||
},
|
||||
{
|
||||
"tags": [
|
||||
"leisure=hackerspace",
|
||||
"hackerspace=makerspace"
|
||||
],
|
||||
"title": {
|
||||
"en": "Makerspace"
|
||||
},
|
||||
"description": {
|
||||
"en": "A makerspace is a place where DIY-enthusiasts gather to experiment with electronics such as arduino, LEDstrips, ..."
|
||||
}
|
||||
}
|
||||
],
|
||||
"wayHandling": 2,
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"and": [
|
||||
"leisure=hackerspace"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue