Add icons, fix some renderings

This commit is contained in:
Robin van der Linde 2022-10-23 20:24:54 +02:00
parent 079876c056
commit 189248980e
Signed by: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
6 changed files with 102 additions and 25 deletions

View file

@ -936,4 +936,4 @@
"es": "Una capa que muestra restaurantes y facilidades de comida rápida",
"fr": "Un claque montrant les restaurants et les endroits de nourriture rapide (avec un rendu spécial pour les friteries)"
}
}
}

View file

@ -51,7 +51,7 @@
"color": "gray"
},
{
"icon": "./assets/svg/bug.svg",
"icon": "./assets/themes/stations/rail-light-15.svg",
"location": [
"point",
"centroid"
@ -66,4 +66,4 @@
}
}
]
}
}

View file

@ -354,6 +354,10 @@
"if": "theme=sports",
"then": "./assets/themes/sports/sport.svg"
},
{
"if": "theme=stations",
"then": "./assets/themes/stations/rail-light-15.svg"
},
{
"if": "theme=street_lighting",
"then": "./assets/layers/street_lamps/street_lamp.svg"

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.2 KiB

View file

@ -1,4 +1,12 @@
[
{
"path": "departures_board.svg",
"license": "CC0",
"authors": [
"Robin van der Linde"
],
"sources": []
},
{
"path": "public_transport_tickets.svg",
"license": "CC0",

View file

@ -19,27 +19,18 @@
"minzoom": 19,
"passAllFeatures": true,
"mapRendering": [
{},
{},
{
"label": {
"render": null
"render": null,
"mappings": null
},
"iconSize": "0,0,bottom"
}
]
}
},
{
"builtin": [
"entrance",
"elevator",
"bench",
"toilet",
"waste_basket"
],
"override": {
"minzoom": 19
}
},
{
"builtin": "pedestrian_path",
"override": {
@ -114,21 +105,72 @@
{
"builtin": "shops",
"override": {
"source": {
"osmTags": {
"and": [
"shop~*",
"indoor=room"
]
}
"isShown": {
"or": [
"indoor=room",
"indoor=area"
]
},
"presets": null,
"minzoom": 19
}
},
{
"builtin": [
"food",
"cafe_pub"
],
"override": {
"isShown": {
"or": [
"indoor=room",
"indoor=area"
]
},
"presets": null,
"minzoom": 19,
"mapRendering+": [
{
"color": {
"render": "#00f"
},
"width": {
"render": "8"
}
}
]
}
},
{
"builtin": "toilet",
"override": {
"isShown": {
"or": [
"indoor=room",
"indoor=area"
]
},
"mapRendering+": [
{
"color": {
"render": "yellow"
},
"width": {
"render": "8"
}
}
]
}
},
"railway_platforms",
{
"id": "ticket_machine",
"name": {
"en": "Ticket Machines"
},
"description": {
"en": "Find ticket machines for public transport tickets"
},
"source": {
"osmTags": {
"and": [
@ -184,6 +226,17 @@
}
]
},
{
"builtin": [
"entrance",
"elevator",
"bench",
"waste_basket"
],
"override": {
"minzoom": 19
}
},
{
"id": "departures_board",
"name": {
@ -257,7 +310,7 @@
],
"mapRendering": [
{
"icon": "./assets/svg/bug.svg",
"icon": "./assets/themes/stations/departures_board.svg",
"location": [
"point",
"centroid"
@ -266,4 +319,4 @@
]
}
]
}
}