var input = document.getElementById('Files'); var files = input.files; for(var i = 0; i < files.length; i++) { var file = files[0]; var reader = new FileReader; // use HTML5 file reader to get the file   reader.onloadend = function () { // get EXIF data var exif = EXIF.readFromBinaryFile(new BinaryFile(this.result));   var lat = exif.GPSLatitude; var lon = exif.GPSLongitude;   //Convert coordinates to WGS84 decimal var latRef = exif.GPSLatitudeRef || "N"; var lonRef = exif.GPSLongitudeRef || "W"; lat = (lat[0] + lat[1]/60 + lat[2]/3600) * (latRef == "N" ? 1 : -1); lon = (lon[0] + lon[1]/60 + lon[2]/3600) * (lonRef == "W" ? -1 : 1);   //Send the coordinates to your map Map.AddMarker(lat,lon); } reader.readAsBinaryString(file); }

https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=fl_featureCollection

No comments:

This will make you a better decision maker | Annie Duke (author of “Thinking in Bets” and “Quit”, former pro poker…

Annie is a former professional poker player, decision-making expert, author, and special partner at First Round Capital.  ͏     ­͏     ­͏   ...

Contact Form

Name

Email *

Message *