Load Shapefile:





Load Shapefiles onto the Map This sample shows how to easily load shapefiles (.shp, .dbf, .prj) onto the map. This sample uses the open source Shapefile.js project which converts Shapefiles into GeoJSON which can easily be consumed by the map control.

Note: Not all file and mime types are enabled in all servers. If using .NET, it is recommended to add the following to the web.config file:

<system.webServer>
  <staticContent>
    <mimeMap fileExtension=".shp" mimeType="application/octet-stream" />
    <mimeMap fileExtension=".dbf" mimeType="application/octet-stream" />
    <mimeMap fileExtension=".prj" mimeType="text/plain" />
  </staticContent>
<system.webServer>