ckan / ckanext-spatial

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

Empty dataset-map-container w/ ckan 2.6 #166

Open joaandrade opened 7 years ago

joaandrade commented 7 years ago

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.

howff commented 6 years ago

This is still a problem in ckan 2.8 !

frafra commented 6 years ago

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)