Skip to content
Snippets Groups Projects
Commit e5340477 authored by Jakob Severin Steffensen Hjelseth's avatar Jakob Severin Steffensen Hjelseth
Browse files

Test

parent fdd3c516
Branches
No related tags found
2 merge requests!15Resolve "Gjøre drop av filer mulig",!14Resolve "Gjøre drop av filer mulig"
...@@ -151,7 +151,6 @@ ...@@ -151,7 +151,6 @@
<!-- Imported js --> <!-- Imported js -->
<script src="https://unpkg.com/shpjs@latest/dist/shp.js"></script> <script src="https://unpkg.com/shpjs@latest/dist/shp.js"></script>
<script src="https://unpkg.com/shapefile@0.6"></script>
</body> </body>
</html> </html>
//document.getElementById("fileSelect").addEventListener("change", handleReadFile()); const input = document.getElementById("fileSelect");
input.addEventListener("change", handleFile(), false);
function handleFile() {
const fileList = file.files;
const fileName = fileList[0].name;
document.getElementById("layers").innerHTML = fileName;
//shp("files/pandr.zip").then(function(geojson) {
//see bellow for whats here this internally call shp.parseZip()
//});
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment