ckanext-spatial
ckanext-spatial copied to clipboard
Empty dataset-map-container w/ ckan 2.6
I added the ckanext-spatial to ckan 2.6 and when I insert a snippet like: {% snippet "spatial/snippets/spatial_query.html", default_extent="[[15.62, -139.21], [64.92, -61.87]]" %} on a page, I got an empty map area. The
is not filled with the leaflet tags.
This is still a problem in ckan 2.8 !
I fixed using http instead of https (I am developing on my machine and I don't have https yet) and using custom tiles instead of the default ones (the default tiles are not working at all)
ckanext.spatial.common_map.type = custom
ckanext.spatial.common_map.custom.url = https://a.tile.openstreetmap.org/{z}/{x}/{y}.png
See also: https://github.com/ckan/ckanext-spatial/issues/157
Update: try the latest version of ckanext-spatial (not the "stable" one like I did)