Project

General

Profile

Feature #1253

Download Button

Added by Bernhard Koschicek about 2 months ago. Updated about 1 month ago.

Status:
In Progress
Priority:
Low
Category:
UI
Target version:
Start date:
2020-05-18
Estimated time:

Description

Make a download button for the GeoJson field.

History

#1

Updated by Bernhard Koschicek about 2 months ago

  • Target version set to API
#2

Updated by Bernhard Koschicek about 2 months ago

  • Status changed from Assigned to In Progress
#3

Updated by Bernhard Koschicek about 2 months ago

New branch feature_api_download

Right now, it is functional but not good implemented.

#4

Updated by Bernhard Koschicek about 1 month ago

  • Target version changed from API to 5.3.0
  • Assignee changed from Bernhard Koschicek to Christoph Hoffmann
  • Category changed from API to UI

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!

Also available in: Atom PDF