-
container
String
|
HTMLElement
inherited
表示包含小部件的 DOM 元素的 ID 或节点。该属性只能设置一次。以下示例都是使用小部件时的有效用例。
例子:
// Create the HTML div element programmatically at runtime and set to the widget's container const basemapGallery = new BasemapGallery({ view: view, container: document.createElement("div") }); // Add the widget to the top-right corner of the view view.ui.add(basemapGallery, { position: "top-right" });
// Specify an already-defined HTML div element in the widget's container const basemapGallery = new BasemapGallery({ view: view, container: basemapGalleryDiv }); // Add the widget to the top-right corner of the view view.ui.add(basemapGallery, { position: "top-right" }); // HTML markup <body> <div id="viewDiv"></div> <div id="basemapGalleryDiv"></div> </body>
// Specify the widget while adding to the view's UI const basemapGallery = new BasemapGallery({ view: view }); // Add the widget to the top-right corner of the view view.ui.add(basemapGallery, { position: "top-right" });
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/widgets/BasemapLayerList"], (BasemapLayerList) => { /* code goes here */ });
ESM:
import BasemapLayerList from "@arcgis/core/widgets/BasemapLayerList";
类:
esri/widgets/BasemapLayerList
继承: BasemapLayerList > Widget > Accessor
自从:用于 JavaScript 4.13 的 ArcGIS API
用法说明
BasemapLayerList.container
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS BasemapLayerList.classes用法及代码示例
- JavaScript ArcGIS BasemapLayerList.headingLevel用法及代码示例
- JavaScript ArcGIS BasemapLayerList.baseListItemCreatedFunction用法及代码示例
- JavaScript ArcGIS BasemapLayerList.visible用法及代码示例
- JavaScript ArcGIS BasemapLayerList.on用法及代码示例
- JavaScript ArcGIS BasemapLayerList.visibleElements用法及代码示例
- JavaScript ArcGIS BasemapLayerList.editingEnabled用法及代码示例
- JavaScript ArcGIS BasemapLayerList.referenceListItemCreatedFunction用法及代码示例
- JavaScript ArcGIS BasemapLayerList.when用法及代码示例
- JavaScript ArcGIS BasemapLayerList.multipleSelectionEnabled用法及代码示例
- JavaScript ArcGIS BasemapLayerList用法及代码示例
- JavaScript ArcGIS BasemapGallery.visible用法及代码示例
- JavaScript ArcGIS Basemap.fromId用法及代码示例
- JavaScript ArcGIS BasemapToggle.visibleElements用法及代码示例
- JavaScript ArcGIS BasemapGallery.when用法及代码示例
- JavaScript ArcGIS BasemapToggle.on用法及代码示例
- JavaScript ArcGIS BasemapGallery.headingLevel用法及代码示例
- JavaScript ArcGIS Basemap.when用法及代码示例
- JavaScript ArcGIS BasemapToggle.container用法及代码示例
- JavaScript ArcGIS BasemapToggle toggle事件用法及代码示例
- JavaScript ArcGIS BasemapGallery.on用法及代码示例
- JavaScript ArcGIS BasemapToggle.classes用法及代码示例
- JavaScript ArcGIS Basemap用法及代码示例
- JavaScript ArcGIS Basemap.loadAll用法及代码示例
- JavaScript ArcGIS BasemapToggle.when用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 BasemapLayerList.container。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。