ckan / ckanext-spatial

Geospatial extension for CKAN
http://docs.ckan.org/projects/ckanext-spatial
126 stars 193 forks source link

Dataset Extent Map #332

Closed mpuskaric closed 3 months ago

mpuskaric commented 3 months ago

Hello, on our CKAN instance, I noticed that when enabling dataset extent map in the dataset description no information on spatial coordinates are fetched, in particular

{% set dataset_extent = h.get_pkg_dict_extra(c.pkg_dict, 'spatial', '') %} {% if dataset_extent %} {% snippet "spatial/snippets/dataset_map_sidebar.html", extent=dataset_extent %} {% endif %}

set dataset_extent = h.get_pkg_dict_extra(c.pkg_dict, 'spatial', '') dataset_extent remains empty. The spatial search widget works as well as searching functionality. Moreover, I followed the documentation for installation and configuration. I would appreciate any feedback on this issue. Thanks

mpuskaric commented 3 months ago

Replacing {% set dataset_extent = h.get_pkg_dict_extra(c.pkg_dict, 'spatial', '') %} with {% set dataset_extent = c.pkg_dict.spatial %} seem to be a solution. I forgot to mention that CKAN is v2.9.11. I am closing this issue