MapShape.ZValue

Syntax

ZValue: Number;

Description

The ZValue property determines height of map layer area.

Comments

Use JSON or the setZValue method to set the property value and the getZValue method to get the property value.

Example

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

Render the map layer area with the RU ID with the coral fill and height set to 0.3:

// Get the map layer area with the RU ID
var shape = map.getShape("RU");
// Set area height equal to 0,3
shape.setZValue(-0.3);
// Render map layer area using coral color of fill
shape.draw(PP.Color.Colors.coral);
// Refresh a map
map.refresh();

After executing the example the map layer area with the RU ID is drawn with the coral fill and height set to 0.3:

See also:

MapShape