This demo shows how to add csv or gpx files to the map then create, save and share a new ArcGIS.com web map. If you are using a browser that supports the File API and Drag and Drop then you can drag a gpx or csv file and drop it on the map. Visit caniuse.com to determine if your browser supports this functionality. If your browser does not support drag/drop use the Add File button to add the gpx or csv file.
After adding the file to the map use the Save button to save the map to ArcGIS.com. Enter your ArcGIS Online account credentials into the dialog along with a name, description and tags for the item.
The application reads lat/lon information from the csv file if the file contains one of the following fields:
Latitude Fields | Longitude Fields |
---|---|
lat | lon |
latitude | longitude |
y | x |
ycenter | xcenter |
The application handles gpx track and waypoint files in the following formats.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <gpx xmlns="http://www.topografix.com/GPX/1/1" version="1.1" creator="RouteConverter"> <metadata> <name>My Waypoints</name> </metadata> <wpt lon="9.860624216140083" lat="54.9328621088893"> <ele>0.0</ele> <name>Position 1</name> </wpt> <wpt lon="9.86092208681491" lat="54.93293237320851"> <ele>0.0</ele> <name>Position 2</name> </wpt> <wpt lon="9.86187816543752" lat="54.93327743521187"> <ele>0.0</ele> <name>Position 3</name> </wpt> <wpt lon="9.862439849679859" lat="54.93342326167919"> <ele>0.0</ele> <name>Position 4</name> </wpt> </gpx>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <gpx xmlns="http://www.topografix.com/GPX/1/1" version="1.1" creator="RouteConverter"> <metadata> <name>My Track File</name> </metadata> <trk> <name>My Track</name> <trkseg> <trkpt lon="9.860624216140083" lat="54.9328621088893"> <ele>0.0</ele> <name>Position 1</name> </trkpt> <trkpt lon="9.86092208681491" lat="54.93293237320851"> <ele>0.0</ele> <name>Position 2</name> </trkpt> <trkpt lon="9.86187816543752" lat="54.93327743521187"> <ele>0.0</ele> <name>Position 3</name> </trkpt> <trkpt lon="9.862439849679859" lat="54.93342326167919"> <ele>0.0</ele> <name>Position 4</name> </trkpt> </trkseg> </trk> </gpx>