Example of undefined in React Maps Component

/
/
ColorMap

This sample shows the average amount of rainfall and snowfall in spring season of all the states in US. Color mapping is applied to the shapes.

More Details...

Loading....
Description

In this example, you can see how to render a map with color mapping. Range color mapping and desaturation color mapping groups the shapes based on the inches value, where the equal color mapping groups based on the category (low, moderate or high) values. Legend is enabled in this example to represent each color mapping.

Tooltip is enabled in this example. To see the tooltip in action, hover the mouse over a marker or tap a marker in touch enabled devices.


Injecting Module

Maps component features are segregated into individual feature-wise modules. To use the legend, inject the Legend module using the Maps.Inject(Legend) method.