Skip to content

Commit

Permalink
Load Leaflet before spatial_query.js
Browse files Browse the repository at this point in the history
  • Loading branch information
taleksovska committed Dec 27, 2024
1 parent 734eb7c commit 6bf6853
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ckanext/spatial/templates/spatial/snippets/spatial_query.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ <h2 class="module-heading">

{% set type = 'asset' if h.ckan_version().split('.')[1] | int >= 9 else 'resource' %}
{% include 'spatial/snippets/spatial_query_' ~ type ~ '.html' %}

<!-- Load Leaflet -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet-tilelayer-providers.min.js"></script>
<script src="{{ h.resource_url('ckanext-spatial:spatial_query.js') }}"></script>

0 comments on commit 6bf6853

Please sign in to comment.