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

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

Primary LanguageC#OtherNOASSERTION

Dashboard for WinForms - Provide Custom Maps for Map Dashboard Items in code

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.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)