-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#45] Hook into the custom spatial previewer
A custom helper function checks if the format is one of the ones supported by the external viewer maintained by GMU. The viewer URL and the supported formats can be defined via config options. ckanext.geodatagov.spatial_preview.url ckanext.geodatagov.spatial_preview.formats Support for a future default_srs parameter has been added.
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% ckan_extends %} | ||
|
||
{% block data_preview %} | ||
{{ h.resource_preview_custom(c.resource, c.package.id) }} | ||
{% endblock %} |