Add drag to upload functionality

Allow users to drag and drop .map files onto the browser to load
existing maps
This commit is contained in:
Evyatar Amitay 2018-05-01 11:09:32 +01:00
parent 7055f392c0
commit 82458aac26
3 changed files with 79 additions and 4 deletions

View file

@ -741,6 +741,14 @@
<button id="removeAllRulers" title="Remove all rulers from the map. Click on ruler label to remove ruler separately" class="icon-trash"></button>
</div>
</div>
<div id="map-dragged" style="display: none">
<p>Drop to upload</p>
</div>
<div id="uploading-map" class="dialog" style="display: none">
<p>Uploading map...</p>
</div>
<div id="alert" title="Warning!" style="display: none">
<p id="alertMessage">Warning!</p>