You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caven Chen edited this page Dec 9, 2024
·
3 revisions
constructor(map,[options])
params
{Map} map : map instance
{Object} options : config
// config{scene: null,//THREE.Scene,if not passed in, the default scene will be usedcamera:null,//THREE.Camera, if not passed in, the default camera will be usedrenderer: null,//THREE.WebGLRenderer if not passed in, the default renderer will be usedpreserveDrawingBuffer: false,renderLoop: (ins)=>{}//Frame animation rendering function, if not passed in, the default function will be used,the params is an instance for MapScene}
properties
{Map} mapreadonly
{HtmlElement} canvasreadonly
{THREE.Scene} scenereadonly
{THREE.Camera} camerareadonly
{THREE.WebGLRenderer} rendererreadonly
{THREE.Group} worldreadonly 3D object container, all created 3D objects except lights need to be added to this container to ensure correct rendering