Dropzone GPX preview
I wrote a client-side plugin for Dropzone to preview GPX1 files in Dropzone.
Purpose
To get useful feedback before uploading a file. Visibility of System Status.
Implementation
Unfortunately I cannot disclose the source code nor a demo, but the overall process is like this:
- Parse the GPX file into an XML DOM.
- Transforming the geographic coordinates to a suitable view box.
- Render the coordinates as SVG’s
polyline. - Serialize the model to a SVG as XML-string.
- Set the resulting SVG as a background to the Dropzone preview.