From 89795c4b3dd6ed33137925720f0461202e4ab74a Mon Sep 17 00:00:00 2001 From: jqnatividad Date: Mon, 3 Nov 2014 16:51:46 -0500 Subject: [PATCH] Display map widget custom attribution Fixes #87 --- ckanext/spatial/templates/spatial/snippets/map_attribution.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ckanext/spatial/templates/spatial/snippets/map_attribution.html b/ckanext/spatial/templates/spatial/snippets/map_attribution.html index c30164d..2e14fc0 100644 --- a/ckanext/spatial/templates/spatial/snippets/map_attribution.html +++ b/ckanext/spatial/templates/spatial/snippets/map_attribution.html @@ -2,6 +2,8 @@ href="http://openstreetmap.org/copyright">OpenStreetMap contributors {% if map_config.type == 'mapbox' %}
Tiles by MapBox
+{% elif map_config.type == 'custom' %} +
{{ map_config.attribution|safe }}
{% else %}
Tiles by MapQuest
{% endif %}