Context: WebGLRenderingContext
The Context property determines map draw area.
To execute the example, the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Spherical map must be opened. Get size of the map draw area:
// Get control of spherical map
var control = map.getGLControl();
// Get area size
console.log("Area width: " + control.getContext().drawingBufferWidth);
console.log("Area height: " + control.getContext().drawingBufferHeight);
As a result the console displays the map draw area size:
Area width: 804
Area height: 379
See also: