-
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/MapView"], (MapView) => { /* code goes here */ });
ESM:
import MapView from "@arcgis/core/views/MapView";
類:
esri/views/MapView
自從:用於 JavaScript 4.0 的 ArcGIS API
用法說明
MapView layerview-create事件
的定義如下:
相關用法
- JavaScript ArcGIS MapView layerview-create-error事件用法及代碼示例
- JavaScript ArcGIS MapView double-click事件用法及代碼示例
- JavaScript ArcGIS MapView click事件用法及代碼示例
- JavaScript ArcGIS MapView pointer-move事件用法及代碼示例
- JavaScript ArcGIS MapView hold事件用法及代碼示例
- JavaScript ArcGIS MapView mouse-wheel事件用法及代碼示例
- JavaScript ArcGIS MapView key-down事件用法及代碼示例
- JavaScript ArcGIS MapView immediate-click事件用法及代碼示例
- JavaScript ArcGIS MapView drag事件用法及代碼示例
- JavaScript ArcGIS MapView.constraints用法及代碼示例
- JavaScript ArcGIS MapView.takeScreenshot用法及代碼示例
- JavaScript ArcGIS MapView.when用法及代碼示例
- JavaScript ArcGIS MapView.highlightOptions用法及代碼示例
- JavaScript ArcGIS MapView.extent用法及代碼示例
- JavaScript ArcGIS MapView.whenLayerView用法及代碼示例
- JavaScript ArcGIS MapView.scale用法及代碼示例
- JavaScript ArcGIS MapView.toScreen用法及代碼示例
- JavaScript ArcGIS MapView.navigation用法及代碼示例
- JavaScript ArcGIS MapView.animation用法及代碼示例
- JavaScript ArcGIS MapView.widthBreakpoint用法及代碼示例
- JavaScript ArcGIS MapView.input用法及代碼示例
- JavaScript ArcGIS MapView.fatalError用法及代碼示例
- JavaScript ArcGIS MapView.hitTest用法及代碼示例
- JavaScript ArcGIS MapView.destroy用法及代碼示例
- JavaScript ArcGIS MapView.background用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 MapView layerview-create event。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。