opendataphilly / opendataphilly-ckan

Port of OpenDataPhilly to CKAN
3 stars 2 forks source link

Re-enable GeoJSON previews #79

Closed flibbertigibbet closed 6 years ago

flibbertigibbet commented 6 years ago

Overview

Switch from ckanext-spatial extenstion to ckanext-geoview, which now contains the map previewers. Enable the GeoJSON map previewer by default.

Demo

image

image

image

Notes

The ckanext-spatial extension we were using for the map preview feature has since been modified to move map previewing out to a separate extension, so this PR switches to that extension, ckanext-geoview, as we were not using any of the other ckanext-spatial features, such as searching by bounding box.

Previews look slightly different from the production version in that they are now displayed in a tabbed view. Enabling either of the other two previewers in the extension will add a second map preview tab to GeoJSON datasets, so here only the GeoJSON previewer is enabled, to avoid presenting multiple map preview tabs of the same dataset.

As with the current production site, if a dataset is too large to preview, either a blank map shows as the site attempts to fetch the data, or a 409 Conflict: Content is too large to be proxied error message displays within the preview page.

Testing Instructions

Checklist

Closes #161.