-
url
String
图层、非空间表或服务的 REST 端点的 URL。 URL 可能指向ArcGIS Enterprise 或ArcGIS Online 上的资源。
如果 url 直接指向服务,则必须在 layerId 属性中指定图层。如果没有给出layerId,那么将加载服务中的第一层。
例子:
// Hosted Feature Service on ArcGIS Online layer.url = "http://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/origins/FeatureServer/0";
// Can also be used if URL points to service and not layer const layer = new SubtypeGroupLayer({ // Notice that the url doesn't end with /2 url: "http://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/MonterreyBayCanyon_WFL/FeatureServer", layerId: 2 });
// Non-spatial table in San Francisco incidents service. const table = new SubtypeGroupLayer({ url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/FeatureServer/1" }); // table must be loaded so it can be used in the app. table.load().then(() => { // table is loaded. ready to be queried. });
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/layers/SubtypeGroupLayer"], (SubtypeGroupLayer) => { /* code goes here */ });
ESM:
import SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer";
类:
esri/layers/SubtypeGroupLayer
继承: SubtypeGroupLayer > Layer > Accessor
自从:用于 JavaScript 4.20 的 ArcGIS API
用法说明
SubtypeGroupLayer.url
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS SubtypeGroupLayer.useViewTime用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.on用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.sublayers用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.timeOffset用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.fields用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.maxScale用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.layerId用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.queryFeatureCount用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.queryAttachments用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.timeExtent用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.objectIdField用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.queryExtent用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.fieldsIndex用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.getFieldDomain用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.visible用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.refreshInterval用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.createQuery用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.fullExtent用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.when用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.addAttachment用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.effect用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.formTemplate用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.definitionExpression用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.version用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.opacity用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 SubtypeGroupLayer.url。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。