Browse Source

Rounding height, rather than truncating.

master
Nathan Hartley 1 year ago
parent
commit
73ab377a0f
  1. 2
      paddling_hazards.yaml

2
paddling_hazards.yaml

@ -16,7 +16,7 @@ feature:
{% set value = '' %}
{% elseif attribute(tags, '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 %}
{% set value = 4 %}
{% endif %}

Loading…
Cancel
Save