[ckan-dev] Spatial Search widget
Aaron McGlinchy
McGlinchyA at landcareresearch.co.nz
Mon Nov 19 04:25:52 UTC 2018
HI, were trying to follow the documentation at http://docs.ckan.org/projects/ckanext-spatial/en/latest/spatial-search.html#spatial-search-widget to specify the extent displayed on the spatial search widget.
We want it to be zoomed in around New Zealand where the majority of our data is from. For the life of us we can't get a correct map image to appear.
We got coordinates for our bounding box from http://boundingbox.klokantech.com/, and tried a few different boxes.
e.g. coordinates: 'westlimit=160.74; southlimit=-49.43; eastlimit=-174.09; northlimit=-32.43
=> extent : {% snippet "spatial/snippets/spatial_query.html", default_extent="[[-49.43,160.74], [-32.43,-174.09]]" %}
Tried another in GeoJson format:
{% snippet "spatial/snippets/spatial_query.html", default_extent="{ \"type\": \"Polygon\", \"coordinates\": [ [ [82.7, 31.6],[-137.8, 31.6],[-137.8, -72.5],[82.7, -72.5],[82.7, 31.6] ] ]}" %}
Neither work. Can anyone give me code snippet to specify a box around NZ?
[cid:image003.jpg at 01D4802C.EAF15D70]
Thanks
Aaron
________________________________
Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20181119/c58324ae/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 48792 bytes
Desc: image003.jpg
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20181119/c58324ae/attachment-0001.jpg>
More information about the ckan-dev
mailing list