Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amercader/3090006 to your computer and use it in GitHub Desktop.
Save amercader/3090006 to your computer and use it in GitHub Desktop.
{% ckan_extends 'package/read.html' %}
{% block styles %}
{{ super() }}
<link type="text/css" rel="stylesheet" media="all" href="/ckanext/spatial/css/dataset_map.css" />
{% endblock %}
{% block scripts %}
{{ super () }}
<script type="text/javascript" src="/base/javascript/vendor/jquery.js"></script>'
<script type="text/javascript" src="/ckanext/spatial/js/openlayers/OpenLayers_dataset_map.js"></script>'
<script type="text/javascript" src="/ckanext/spatial/js/dataset_map.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
CKAN.DatasetMap.extent = '{ "type": "Polygon", "coordinates": [ [ [-0.3715, 50.8168],[-0.3715, 50.8747], [-0.2155, 50.8747], [-0.2155, 50.8168], [-0.3715, 50.8168] ] ] }';
CKAN.DatasetMap.setup();
})
//]]>
</script>
{% endblock %}
{% block actions_content %}
{{ super () }}
<li><a class="btn" href=""><i class="icon-large icon-flag"></i> Report Issue</a></li>
{% endblock %}
{% block primary_content %}
{{ super() }}
{#% snippet "snippets/spatial/dataset_map.html" %#}
{% endblock %}
{% block secondary_content %}
{{ super() }}
{% snippet "snippets/subscribe.html" %}
{% snippet "snippets/disqus_trackback.html" %}
{% snippet "snippets/spatial/dataset_map_secondary.html" %}
{% endblock %}
<section class="module module-narrow dataset-map">
<h2 class="module-heading"><i class="icon-medium icon-globe"></i> Dataset extent</h2>
<div class="dataset-map">
<div id="dataset-map-container"></div>
<div id="dataset-map-attribution">
<div>Map data CC-BY-SA by <a href="http://openstreetmap.org">OpenStreetMap</a></div>
<div>Tiles by <a href="http://www.mapquest.com">MapQuest</a></div>
</div>
</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment