[ckan-dev] Spatial Search widget

Andrew Brooks arb at sat.dundee.ac.uk
Mon Nov 19 10:26:38 UTC 2018


Does it help to look at how it was done here?
https://github.com/ViderumGlobal/ckanext-panama/blob/4de7e7b12c153fba25aa6539c329f1a82b916059/ckanext/panama/templates/package/search.html


On Mon, 19 Nov 2018 at 04:37, Aaron McGlinchy <
McGlinchyA at landcareresearch.co.nz> wrote:

> 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?
>
>
>
> 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
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20181119/28f69eac/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 48792 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20181119/28f69eac/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 48792 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20181119/28f69eac/attachment-0005.jpg>


More information about the ckan-dev mailing list