Select an Excel file that contains latitude and longitude, or Well Known Text data.

Visualize Excel data

This sample shows how to easily load and visualize a local Excel file on the map. This sample only reads the first sheet in the workbook. To simplify things, this sample leverages the spatial CSV capabilities of the Spatial IO module which analyizes the column names and first row of data to find which columns contain spatial information that can be used to create GeoJSON features. Converting the worksheet to JSON, then manualy converting to JSON would be a better approach if you need to add logic to geocode string addresses.

This sample makes use of SheetJS, an open source library for reading Excel files in JavaScript.