This document explains how to use the default DevExpress Dashboard maps or provide custom maps.
DevExpress Dashboard ships with a set of default maps showing various parts of the world. The following maps are included.
The World Countries map has a lower level of detail than maps of specific regions and may not contain some of the countries. As an alternative, you can load a custom map with required granularity.
To select the required default map, use the Default Map button in the ribbon Design tab.
As an alternative, use the corresponding command in the map context menu.
To specify the default map in code, use the MapDashboardItem.Area property.
DevExpress Dashboard uses a Shapefile vector format to provide custom maps. Commonly, this format includes two file types.
To open an existing shapefile, use the Load Map or Import Map button in the Ribbon, or the command in the context menu (Load Map... or Import Map...).
In the invoked dialog, locate the required .shp file. Note that custom maps created in the Cartesian coordinate system are not supported.
Attributes from the corresponding .dbf file located in the same directory will be included in the map automatically.
To load the existing shapefile in code, set the MapDashboardItem.Area property to ShapefileArea.Custom and use the MapDashboardItem.CustomShapefile property. There are two ways to provide a custom shapefile.
If the map is opened using the Load Map button or the CustomShapefile.Url property, the dashboard XML definition will contain the path to a map shapefile. If the map is opened using the Import Map button or the CustomShapefile.Data property, the dashboard XML definition will contain the map itself.
After you select the default map or a custom map, you can view supplemental information (such as the name of the country, state, etc.). To do this, click the Options button next to the Attribute data item.
In the invoked Map Attribute Binding dialog, click the button.
This table displays the available attributes for the current map. Each set of attribute values is related to a specific map shape.
To learn how to bind the map attribute to a data source field, see the Providing Data topic.