Public Lab

Remove spinner after an export is complete

LDI provides the ability to export multiple images. Demo it here: https://publiclab.github.io/Leaflet.DistortableImage/examples/select.html by

  • ctrl + clicking on one or more images.
  • A single toolbar for all of them will appear in the topleft corner.
  • Click the top icon to begin export
  • Open your developer console to see updates on the status

While the export is in progress a spinner icon appears, but it does not yield back to the original export icon after completion.

We would like it to do so.

Solution:

Relevant information:

Relevant code links paired with line-by-line explanations of exiting code can be found on the linked issue.

This task is more conceptually challenging (understanding existing code and how LDI works, and broader concepts of SVG and JS ajax calls) than a challenge to implement difficult code.

Additional Information

Please find further information on installation, solving, & getting help on the linked issue.

Thank you 😊

Task tags

  • leaflet
  • svg
  • ajax
  • javascript
  • hard

Students who completed this task

VladeDev

Task type

  • code Code
close

2019