Rename iconse to include 'mph' as workaround to fix #981

This commit is contained in:
pietervdvn 2022-08-18 19:26:29 +02:00
parent 2cdb7f332e
commit 05a707d3e0
16 changed files with 34 additions and 31 deletions

View file

@ -110,16 +110,19 @@
"allowSplit": true, "allowSplit": true,
"mapRendering": [ "mapRendering": [
{ {
"render": null,
"icon": { "icon": {
"render": null,
"mappings": [ "mappings": [
{ {
"if": "maxspeed~[1-9]0|1[0-4]0", "if": "maxspeed~[1-9]0|1[0-4]0",
"then": "./assets/themes/maxspeed/maxspeed_{maxspeed} mph.svg"
},
{
"if": "maxspeed~[1-9]0|1[0-4]0 mph",
"then": "./assets/themes/maxspeed/maxspeed_{maxspeed}.svg" "then": "./assets/themes/maxspeed/maxspeed_{maxspeed}.svg"
} }
] ]
}, },
"condition": "maxspeed!=30",
"iconSize": { "iconSize": {
"render": "32,32,center" "render": "32,32,center"
}, },

View file

@ -1,142 +1,142 @@
[ [
{ {
"path": "maxspeed_10.svg", "path": "maxspeed_10 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_100.svg", "path": "maxspeed_100 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_110.svg", "path": "maxspeed_110 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_120.svg", "path": "maxspeed_120 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_130.svg", "path": "maxspeed_130 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_140.svg", "path": "maxspeed_140 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_20.svg", "path": "maxspeed_20 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_30.svg", "path": "maxspeed_30 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_40.svg", "path": "maxspeed_40 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_50.svg", "path": "maxspeed_50 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_60.svg", "path": "maxspeed_60 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_70.svg", "path": "maxspeed_70 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_80.svg", "path": "maxspeed_80 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
"path": "maxspeed_90.svg", "path": "maxspeed_90 mph.svg",
"license": "CC 4.0", "license": "CC 4.0",
"authors": [ "authors": [
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
}, },
{ {
@ -146,7 +146,7 @@
"yopaseopor" "yopaseopor"
], ],
"sources": [ "sources": [
"https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30.svg" "https://raw.githubusercontent.com/yopaseopor/beta_preset_josm/master/ES/traffic_signs/ES/ES_R301-30 mph.svg"
] ]
} }
] ]

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View file

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB