-
loadAll
()
{Promise<BuildingSceneLayer>}
- 自从:ArcGIS 适用于 JavaScript 4.11 的 API
加载图层及其所有子图层。
返回:
类型 说明 Promise<BuildingSceneLayer> 当所有子图层都已加载时解析。如果至少有一个子层未能加载,则拒绝。 例子:
// Print the names of all components in the building scene layer after ensuring that they have been loaded buildingSceneLayer.loadAll() .then(function() { const allComponentNames = buildingSceneLayer.allSublayers .filter(function(sublayer) { return sublayer.type === "building-component"; }) .map(function(sublayer) { return sublayer.title; }) console.log(allComponentNames.join("\n")); }); .catch(function(error) { console.log("Error: one or more sublayer failed to load"); });
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/layers/BuildingSceneLayer"], (BuildingSceneLayer) => { /* code goes here */ });
ESM:
import BuildingSceneLayer from "@arcgis/core/layers/BuildingSceneLayer";
类:
esri/layers/BuildingSceneLayer
继承: BuildingSceneLayer > Layer > Accessor
自从:用于 JavaScript 4.10 的 ArcGIS API
用法说明
BuildingSceneLayer.loadAll
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS BuildingSceneLayer.layerId用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.url用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.minScale用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.maxScale用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.summaryStatistics用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.filters用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.apiKey用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.on用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.when用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.outFields用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.visible用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.opacity用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.fullExtent用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.portalItem用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.allSublayers用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer.version用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer用法及代码示例
- JavaScript ArcGIS BuildingSceneLayerView.sublayerViews用法及代码示例
- JavaScript ArcGIS BuildingSceneLayerView.highlight用法及代码示例
- JavaScript ArcGIS BuildingSceneLayerView.when用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer layerview-create-error事件用法及代码示例
- JavaScript ArcGIS BuildingSceneLayer layerview-create事件用法及代码示例
- JavaScript ArcGIS BuildingSceneLayerView用法及代码示例
- JavaScript ArcGIS BuildingSublayer.modelName用法及代码示例
- JavaScript ArcGIS BuildingSummaryStatistics用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 BuildingSceneLayer.loadAll。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。