CanvasMap
Getting Started Tutorials 3D Reference

Background Color of the Scene

The scene is the background for the map in the HTML Canvas object. You can change the background of the scene using any of the settings available for layers that apply to filling (fillStyle, patterns, and gradients). The scene fills in the entire backdrop for your map. The area defined by the current projection may be smaller and is represented by a Geo. You can also change the background for the Geo in the same way as the scene. To change the color of the scene's background and the background for the Geo:

var TheScene=TheMainContainer.GetScene();
TheScene.SetSetting("Style","fillStyle","rgb(120,120,255)");

var TheGeo=TheScene.GetGeo();
TheGeo.SetSetting("Style","fillStyle","rgb(255,120,120)");