Browse Source

railway-electrification: fix display of non-electrified / unknown

pedestrian
parent
commit
454f92c644
  1. 6
      railway-electrification.json

6
railway-electrification.json

@ -24,8 +24,10 @@
" {% else %}", " {% else %}",
" {% set color = colorInterpolate([ 'blue', '#af0000' ], (tags.voltage - 1000) / 24000) %}", " {% set color = colorInterpolate([ 'blue', '#af0000' ], (tags.voltage - 1000) / 24000) %}",
" {% endif %}", " {% endif %}",
"{% elseif tags.electrified and tags.electrified == 'no' %}",
" {% set color = '#000000' %}",
"{% else %}", "{% else %}",
" {% set color = 'black' %}",
" {% set color = '#7f7f7f' %}",
"{% endif %}", "{% endif %}",
"", "",
"{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}", "{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}",
@ -72,7 +74,7 @@
"fill": null, "fill": null,
"dashArray": [ "dashArray": [
"{% if not tags.electrified is defined %}", "{% if not tags.electrified is defined %}",
"{% elseif tags.frequency == 0 %}",
"{% elseif not tags.frequency is defined or tags.frequency == 0 %}",
"{% else %}", "{% else %}",
"5,2", "5,2",
"{% endif %}" "{% endif %}"

Loading…
Cancel
Save