-
layerview-create
View layerview-create事件
在Map中的每个图层都有相应的 LayerView 在视图中创建和渲染后触发。
例子:
// This function fires each time a layer view is created for a layer in // the map of the view. view.on("layerview-create", function(event) { // The event contains the layer and its layer view that has just been // created. Here we check for the creation of a layer view for a layer with // a specific id, and log the layer view if (event.layer.id === "satellite") { // The LayerView for the desired layer console.log(event.layerView); } });
基本信息
以下是所在类或对象的基本信息。
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 layerview-create事件
的定义如下:
相关用法
- JavaScript ArcGIS SceneView layerview-create-error事件用法及代码示例
- JavaScript ArcGIS SceneView double-click事件用法及代码示例
- JavaScript ArcGIS SceneView mouse-wheel事件用法及代码示例
- JavaScript ArcGIS SceneView click事件用法及代码示例
- JavaScript ArcGIS SceneView key-down事件用法及代码示例
- JavaScript ArcGIS SceneView drag事件用法及代码示例
- JavaScript ArcGIS SceneView pointer-move事件用法及代码示例
- JavaScript ArcGIS SceneView immediate-click事件用法及代码示例
- JavaScript ArcGIS SceneView hold事件用法及代码示例
- JavaScript ArcGIS SceneView.breakpoints用法及代码示例
- JavaScript ArcGIS SceneView.on用法及代码示例
- JavaScript ArcGIS SceneView.highlightOptions用法及代码示例
- JavaScript ArcGIS SceneView用法及代码示例
- JavaScript ArcGIS SceneView.input用法及代码示例
- JavaScript ArcGIS SceneView.ui用法及代码示例
- 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用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 SceneView layerview-create event。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。