{#

Removed map attribution - this is now in the footer

#}

{% set map_config = h.get_common_map_config() %}
{% set map_styles = h.get_map_styles() %}

<div class="dataset-map" data-module="dataset-map" data-extent="{{ extent }}" data-module-site_url="{{ h.dump_json(h.url_for('/', locale='default', qualified=true)) }}" data-module-map_config="{{ h.dump_json(map_config) }}" data-module-styles="{{ h.dump_json(map_styles) }}">
  <div id="dataset-map-container"></div>
</div>

{% asset 'ckanext-spatial/dataset_map' %}

{#

Removed map attribution - this is now in the footer

#}

{% set map_config = h.get_common_map_config() %}
{% set map_styles = h.get_map_styles() %}

<div class="dataset-map" data-module="dataset-map" data-extent="{{ extent }}" data-module-site_url="{{ h.dump_json(h.url_for('/', locale='default', qualified=true)) }}" data-module-map_config="{{ h.dump_json(map_config) }}" data-module-styles="{{ h.dump_json(map_styles) }}">
  <div id="dataset-map-container"></div>
</div>

{# TODO: 2.9: should be asset but ckanext-spatial hasn't been upgraded to yet so fanstatic it is #}
{% resource 'ckanext-spatial/dataset_map' %}

Use fanstatic to get ckanext-spatial resource
Use fanstatic to get ckanext-spatial resource

Hasn't been updated yet :(
