MapChart.Shape3DOpacity

Syntax

Shape3DOpacity: Number;

Description

The Shape3DOpacity property determines transparency for areas of 3D map layer.

Comments

Property value can be set from JSON or using the setShape3DOpacity method. Property value varies in the range between 0 (absolutely transparent map layer area) to 1 (absolutely opaque region, used by default).

The Shape3DOpacity property has effect, if the map type is Sphere: that is, value of the MapChart.Type property must be set to PP.MapChartType.Sphere.

Example

To execute the example the HTML page must contain the MapChart component named map and the ). A map with the Sphere display type must also be loaded (see page with description of the MapChart.AmbientLightValue property ToolBar property named MapType (see . Example of Creating the MapChart Component). A map with the Sphere display type must also be loaded (see page with description of the MapChart.AmbientLightValue property ).

make the map layer area more transparent and show the data for the next year:

// Set 50% transparency for map layer areas
map.setShape3DOpacity(0.5);
// Show map with the data of the following year
map.draw(1);

After executing the example map layer areas transparency is set to 50% and the map shows data for the next year:

See also:

MapChart