"styles":"{% if gauges|length < 2 %}default{% else %}{% for i, v in gauges %}{% if i != 0 %},{% endif %}gauge{{ i }}{% endfor %}{% endif %}",
"styles":"{% if gauges|length < 2 %}default{% else %}{% for i, v in gauges %}{% if i != 0 %},{% endif %}gauge{{ i }}{% endfor %}{% endif %}{% if gauges|length > 0 and map.zoom >= 18 %},rail{% for i, v in gauges %},rail{{ i }}{% endfor %}{% endif %}",
"style":{
"style":{
"width":"3",
"width":"{{ width }}",
"pane":"casing",
"color":"{% if tags.gauge %}{% if not tags.gauge|matches('^\\d+$') %}#ff0000{% else %}{{ colorInterpolate([ '#00ff00', '#0000ff' ], tags.gauge / 2000) }}{% endif %}{% else %}#404040{% endif %}"
"color":"{% if tags.gauge %}{% if not tags.gauge|matches('^\\d+$') %}#ff0000{% else %}{{ colorInterpolate([ '#00ff00', '#0000ff' ], tags.gauge / 2000) }}{% endif %}{% else %}#404040{% endif %}"
},
},
"style:rail":{
"width":"1",
"color":"#ffffff",
"offset":"{{ gauges[0] / -2000 }}m"
},
"style:gauge0":{
"style:gauge0":{
"width":"3",
"width":"{{ width }}",
"pane":"casing",
"lineCap":"butt",
"lineCap":"butt",
"color":"{% if not gauges[0]|matches('^[0-9]+$') %}#ff0000{% else %}{{ colorInterpolate([ '#00ff00', '#0000ff' ], gauges[0] / 2000) }}{% endif %}",
"color":"{% if not gauges[0]|matches('^[0-9]+$') %}#ff0000{% else %}{{ colorInterpolate([ '#00ff00', '#0000ff' ], gauges[0] / 2000) }}{% endif %}",
"dashArray":"5,{{ (gauges|length - 1) * 5 }}"
"dashArray":"5,{{ (gauges|length - 1) * 5 }}"
},
},
"style:rail0":{
"width":"1",
"color":"#ffffff",
"offset":"{{ gauges[0] / 2000 }}m"
},
"style:gauge1":{
"style:gauge1":{
"width":"3",
"width":"{{ width }}",
"pane":"casing",
"lineCap":"butt",
"lineCap":"butt",
"color":"{% if not gauges[1]|matches('^[0-9]+$') %}#ff0000{% else %}{{ colorInterpolate([ '#00ff00', '#0000ff' ], gauges[1] / 2000) }}{% endif %}",
"color":"{% if not gauges[1]|matches('^[0-9]+$') %}#ff0000{% else %}{{ colorInterpolate([ '#00ff00', '#0000ff' ], gauges[1] / 2000) }}{% endif %}",