Actions
Feature #1253
closedDownload Button
Start date:
2020-05-18
Estimated time:
Description
Make a download button for the GeoJson field.
Actions
Added by Bernhard Koschiček-Krombholz over 4 years ago. Updated over 4 years ago.
Description
Make a download button for the GeoJson field.
New branch feature_api_download
Right now, it is functional but not good implemented.
Implementation on the backend complete.
@Christoph Hoffmann: I included a download button image from https://icons.getbootstrap.com/, which is under MIT license. I don't know if we have other buttons available through bootstrap. Can you make it beautiful? ;) I just added code to the util.py around line 217:
data['API'] = '<a href="{url}" target="_blank">GeoJSON</a>'.format( url=url_for('api_entity', id_=entity.id)) + \ ' <a href="{url}" target="_blank">' \ ' <img src="/static/images/icons/download.png" alt="download"></a>'.format( url=url_for('api_download_entity', id_=entity.id))
I merged it already in develop!