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
Encapsulating management of HTML within JS is an anti-pattern - better to manage HTML externally to the likes of NavCubePlugin etc.
Change NavCube to accept ID of canvas, ie:
newNavCubePlugin(viewer,{canvasId: "myNavCubeCanvas",visible: true,// Initially visible (default)size: 250,// NavCube size in pixels (default is 200)alignment: "topRight",// Align NavCube to top-left of Viewer canvastopMargin: 170,// 170 pixels margin from top of Viewer canvascameraFly: true,// Fly camera to each selected axis/diagonalcameraFitFOV: 45,// How much field-of-view the scene takes once camera has fitted it to viewcameraFlyDuration: 0.5// How long (in seconds) camera takes to fly to each new axis/diagonal});
The text was updated successfully, but these errors were encountered:
Encapsulating management of HTML within JS is an anti-pattern - better to manage HTML externally to the likes of
NavCubePlugin
etc.Change
NavCube
to accept ID of canvas, ie:The text was updated successfully, but these errors were encountered: