Skip to content

The following example shows how to load a .shp file to provide a custom map for the Choropleth Map dashboard item.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/win-viewer-map-custom-shape-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Provide Custom Maps for Map Dashboard Items in WinForms

The following example shows how to load a .shp file to provide a custom map for the Choropleth Map dashboard item.

DevExpress Dashboard uses a Shapefile vector format to provide custom maps. Commonly, this format includes two file types:

  • .shp file - holds map shapes (points/lines/polygons);
  • .dbf file - contains attributes for each shape.

Follow the steps below to load the existing shapefile in code:

If you use the CustomShapefile.Url property to open a map, the dashboard XML definition will contain the path to a map shapefile. If you open the map with the CustomShapefile.Data property, the dashboard XML definition will contain the map itself.

See Custom Maps for details.

About

The following example shows how to load a .shp file to provide a custom map for the Choropleth Map dashboard item.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5