{% assign id = include.map-id %} {% assign height = include.height | default: 20 %} {% assign data = site.data.maps[id] %} {% assign color = include.color | default: data.color | default: 'green' %} {% if data %}
{% append_lib jqvmap %} {% capture script %} {% endcapture %} {% if include.show-scripts %} {{ script }} {% else %} {% capture_global scripts %} {{ script }} {% endcapture_global %} {% endif %} {% endif %}