Browse Source

Rounding height, rather than truncating.

master
Nathan Hartley 2 years ago
parent
commit
2198d98112
  1. 2
      paddling_hazards.yaml

2
paddling_hazards.yaml

@ -16,7 +16,7 @@ feature:
{% set value = '' %} {% set value = '' %}
{% elseif attribute(tags, 'seamark:bridge:clearance_height') %} {% elseif attribute(tags, 'seamark:bridge:clearance_height') %}
{% set key = 'seamark:bridge:clearance_height' %} {% set key = 'seamark:bridge:clearance_height' %}
{% set value = Math.trunc(attribute(tags, 'seamark:bridge:clearance_height')) %}
{% set value = attribute(tags, 'seamark:bridge:clearance_height') | round %}
{% if value > 4 %} {% if value > 4 %}
{% set value = 4 %} {% set value = 4 %}
{% endif %} {% endif %}

Loading…
Cancel
Save