{# Displays a map widget to define a spatial filter on the dataset search page sidebar default_extent Initial map extent (Optional, defaults to the whole world). It can be defined either as a pair of coordinates or as a GeoJSON bounding box. e.g. {% snippet "spatial/snippets/spatial_query.html", default_extent=[[15.62, -139.21], [64.92, -61.87]] %} {% snippet "spatial/snippets/spatial_query.html", default_extent="{ \"type\": \"Polygon\", \"coordinates\": [[[74.89, 29.39],[74.89, 38.45], [60.50, 38.45], [60.50, 29.39], [74.89, 29.39]]]}" %} #}

{{ _('Filter by location') }} {{ _('Clear') }}

{% set map_config = h.get_common_map_config() %}
{% asset 'ckanext-spatial/spatial_query_js' %} {% asset 'ckanext-spatial/spatial_query_css' %}