基本信息
以下是所在類或對象的基本信息。
類:
esri/views/layers/BuildingSceneLayerView
繼承: BuildingSceneLayerView > LayerView > Accessor
自從:用於 JavaScript 4.17 的 ArcGIS API
用法說明
表示 BuildingSceneLayer 的 LayerView 在添加到 SceneView 中的 Map 之後。 BuildingSceneLayerView 負責在 SceneView 中流式傳輸和渲染 BuildingSceneLayer's 特征。
BuildingSceneLayerView 包含 sublayer views 的列表,用於 BuildingSceneLayer 的所有 component sublayers。 BuildingSceneLayerView 沒有查詢方法。要查詢客戶端加載的函數,請使用組件 sublayer views 上的查詢方法:
// query all the loaded features
view.whenLayerView(buildingSceneLayer).then(function(buildingSceneLayerView) {
buildingSceneLayerView.sublayerViews.forEach(function(sublayerView) {
const query = sublayerView.createQuery();
sublayerView.queryFeatures(query).then(function(result) {
console.log(result.features);
});
});
});
BuildingSceneLayerView 可用於突出顯示任何 component sublayers 中的函數。突出顯示方法將應突出顯示的函數作為參數:
// on user click, select the first feature in the BuildingSceneLayer
let highlight = null;
view.on("click", function (event) {
view.hitTest(event.screenPoint, {include: buildingSceneLayer}).then((hitTestResult) => {
if (highlight) {
highlight.remove();
highlight = null;
}
if (hitTestResult.results.length) {
highlight = bslv.highlight(hitTestResult.results[0].graphic);
}
});
});
相關用法
- JavaScript ArcGIS BuildingSceneLayerView.sublayerViews用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayerView.highlight用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayerView.when用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer.url用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer.minScale用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer.loadAll用法及代碼示例
- 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 layerview-create-error事件用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer.visible用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer.opacity用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer.layerId用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer.fullExtent用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer.portalItem用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer.allSublayers用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer.version用法及代碼示例
- JavaScript ArcGIS BuildingSceneLayer layerview-create事件用法及代碼示例
- JavaScript ArcGIS BuildingSublayer.modelName用法及代碼示例
- JavaScript ArcGIS BuildingSummaryStatistics用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 BuildingSceneLayerView。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。