Skip to content
This repository was archived by the owner on Apr 10, 2023. It is now read-only.
This repository was archived by the owner on Apr 10, 2023. It is now read-only.

Add spatial widget to generate the BBox #3

@mjanez

Description

@mjanez

Update spatial field (snippet_form) to generate an interactive BBox, in order to facilitate the work of metadata generation.

- field_name: spatial
label:
en: Bounding Box
es: Extensión espacial
form_snippet: json.html
display_property: dct:spatial
form_placeholder: '{"type": "Polygon", "coordinates": [[[-18.273563, 27.549025], [4.440455, 27.549025], [4.440455, 43.855133], [-18.273563, 43.855133], [-18.273563, 27.549025]]]}'
help_text:
en: '<a href="https://geojson.io" target="_blank">Draw and edit BBox:</a> Only "geometry" dict with "type" and "coordinates" elements. More information at <a href="https://geojson.org/geojson-spec.html#bounding-boxes" target="_blank">GeoJSON bounding boxes</a>.'
es: '<a href="https://geojson.io" target="_blank">Dibuja y edita el BBox:</a> Solo es necesario el diccionario "geometry" con los elementos "type" y "coordinates". Más información en <a href="https://geojson.org/geojson-spec.html#bounding-boxes" target="_blank">GeoJSON bounding boxes</a>.'
help_allow_html: True

More info: dbca-wa/ckanext-dbca#1 ckan/ckanext-spatial#93

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions