公开视图中可用的默认小部件,并允许您打开和关闭它们。有关详细信息,请参阅DefaultUI。
例子:
let toggle = new BasemapToggle({ view: view, nextBasemap: "hybrid" }); // Adds an instance of BasemapToggle widget to the // top right of the view. view.ui.add(toggle, "top-right");
// Moves the zoom and BasemapToggle widgets to the // bottom left of the view. view.ui.move([ "zoom", toggle ], "bottom-left");
// Removes all the widgets from the bottom left of the view view.ui.empty("bottom-left");
// Removes the compass widget from the view view.ui.remove("compass");
// Removes all default UI components, except Attribution. // Passing an empty array will remove all components. view.ui.components = [ "attribution" ];
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/views/SceneView"], (SceneView) => { /* code goes here */ });
ESM:
import SceneView from "@arcgis/core/views/SceneView";
类:
esri/views/SceneView
继承: SceneView > View > Accessor
自从:用于 JavaScript 4.0 的 ArcGIS API
用法说明
SceneView.ui
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS SceneView.breakpoints用法及代码示例
- JavaScript ArcGIS SceneView.on用法及代码示例
- JavaScript ArcGIS SceneView.highlightOptions用法及代码示例
- JavaScript ArcGIS SceneView.input用法及代码示例
- JavaScript ArcGIS SceneView.whenAnalysisView用法及代码示例
- JavaScript ArcGIS SceneView.camera用法及代码示例
- JavaScript ArcGIS SceneView.widthBreakpoint用法及代码示例
- JavaScript ArcGIS SceneView.navigation用法及代码示例
- JavaScript ArcGIS SceneView.hitTest用法及代码示例
- JavaScript ArcGIS SceneView.popup用法及代码示例
- JavaScript ArcGIS SceneView.graphics用法及代码示例
- JavaScript ArcGIS SceneView.when用法及代码示例
- JavaScript ArcGIS SceneView.zoom用法及代码示例
- JavaScript ArcGIS SceneView.container用法及代码示例
- JavaScript ArcGIS SceneView.takeScreenshot用法及代码示例
- JavaScript ArcGIS SceneView.whenLayerView用法及代码示例
- JavaScript ArcGIS SceneView.goTo用法及代码示例
- JavaScript ArcGIS SceneView.tryFatalErrorRecovery用法及代码示例
- JavaScript ArcGIS SceneView.alphaCompositingEnabled用法及代码示例
- JavaScript ArcGIS SceneView.heightBreakpoint用法及代码示例
- JavaScript ArcGIS SceneView.qualityProfile用法及代码示例
- JavaScript ArcGIS SceneView.environment用法及代码示例
- JavaScript ArcGIS SceneView.EasingFunction用法及代码示例
- JavaScript ArcGIS SceneView.analyses用法及代码示例
- JavaScript ArcGIS SceneView.fatalError用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 SceneView.ui。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。