MapShape.normalize3d

Syntax

normalize3d(normData: Object);

Parameters

normData. Normalization data.

Description

The normalize3d method normalizes area of 3D map layer.

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). A map with WebGL topobase must be loaded (see  the page with description of the MapChart.TopoNormalization property).

Set normalization coefficient equal to 0.5 for the 3D map layer area with the RU-KYA identifier:

// Get map layer area with the RU identifier
var shape = map.getShape("RU-KYA");
// Define area normalization settings
var normData = {
    norm: 0.5, // Normalization coefficient
    offsetx: 0, // X axis offset
    offsety: 0, // Y axis offset
    offsetz: 0 // Z axis offset
};
// Normalize area of 3D map layer
shape.normalize3d(normData);
// Map layer area needs to be redrawn
shape._mustRedraw = true;
// Refresh the map
map.refresh();

After executing the example all dimensions of 3D map area with the RU-KYA identifier are reduced in half by all axes:

See also:

MapShape