MapChart.InactiveItemsOpacity

Syntax

InactiveItemsOpacity: Number;

Description

The InactiveItemsOpacity property sets opacity for inactive regions of map layer.

Comments

Use JSON or the setInactiveItemsOpacity method to set the property value. Its value changes between 0 (fully transparent area) to 1 (fully opaque area).

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Reduce transparence of inactive areas:

// Set transparence coefficient of inactive areas
map.setInactiveItemsOpacity(0.2);
// Render the map with data for initial year
map.draw(0);

As a result of executing the example, on mouse selection of the map layer area the transparence of the rest (inactive) areas will be 20%:

See also:

MapChart