MapChart.Has3DVisualInSettings

Syntax

Has3DVisualInSettings: Boolean;

Description

The Has3DVisualInSettings property specifies whether 3D map settings are read from file or set programmatically.

Comments

Property value can be set from JSON or with the setHas3DVisualInSettings method.

The property is set toTrue (default), if 3D map settings are read from file, or it is False if the settings are defined by program.

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 ).

Find out the source of Sphere map settings:

// Set a Sphere type map
map.setType(PP.MapChartType.Sphere);
if (map.getHas3DVisualInSettings()) {
    console.log("3D map settings are read from file.");
} else {
    console.log("3D map settings are set programmatically.");
};

After executing the example the browser console displays a message that 3D map settings are read from file.

See also:

MapChart