[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
  [Collapse]Map Control
   [Expand]Getting Started
   [Expand]Coordinate Systems
   [Expand]Map Image Data
   [Expand]GIS Data
   [Collapse]Vector Data
    [Expand]Providing Data
   [Expand]Visual Elements
   [Expand]End-User Features
   [Expand]Product Information
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)


This document introduces the Map Colorizer, lists colorizer types, and explains how to create a colorizer and customize its settings.

The document consists of the following sections.

Expanded Overview

The Colorizer is used to automatically choose colors for map shapes based on shape data. This feature can be applied to the following MapShape class descendants that utilize the MapItem.Fill property:

For example, you can use the map colorizer to create GDP, population or political maps.

Before using this feature, you will need to perform the following steps.

1) Specify how the vector items layer will obtain the map shapes to color.

This can be done in two ways:

For instance, to specify a path to the Shapefile at design time, do the following:

  • Click the smart tag of the Map control to invoke its actions list. In the invoked actions list, click the Load from Shapefile link.

  • In the invoked dialog, specify a path to the Shapefile.

2) Choose which colorizer type should be used in your application.

Currently, the following colorizer types are supported:

  • ChoroplethColorizer

    Represents the Choropleth colorizer, which shows statistical data over predefined regions (such as counties or states) by coloring or shading these regions.

  • GraphColorizer

    Represents the Graph colorizer, which paints shapes that have a common border using different colors according to the Graph Coloring approach. For instance, the Graph colorizer can be used to create a political map.

  • KeyColorColorizer

    Represents the Key-Color colorizer, which paints shapes according to their keys. The Key-Color colorizer can be used to add statistical information to a map.


Shapes that have been obtained from a KML file can only be colored by the Graph Colorizer.

To add the colorizer to the map control, it is necessary to create one of the MapColorizer class descendants and assign it to the VectorItemsLayer.Colorizer property of the appropriate vector layer.

After you select a colorizer type, you can customize the map colorizer settings. The sections below describe how this can be done.

Expanded Choropleth Colorizer

To customize the Choropleth colorizer, perform the following steps:

Note that when the map control obtains data from a Shapefile, the vector item attributes are generated automatically. Thus, you can select which attribute should be used in your application.

The image below shows the choropleth colorizer with a color scale legend that colors map contours based on GDP data from the Shapefile.

To learn more about how to colorize map contours from a Shapefile, refer to How to: Colorize Map Contours Using the Choropleth Colorizer.

Expanded Graph Colorizer

To colorize map contours, specify a set of color items using the GraphColorizer.ColorItems property.

As a result, the map contours appear as follows.

This example shows how to use the graph colorizer at run time: How to: Colorize Map Contours Using the Graph Colorizer.

Expanded Key-Color Colorizer

To colorize Map shapes using key-color colorizer, do the following.

As a result, the map shapes appear as follows.

To learn more about how to colorize map items using key-color colorizer, refer to How to: Colorize Map Items Using the Key Color Colorizer.

Expanded See Also

Is this topic helpful?​​​​​​​