workspaceIds在下图地位处
dataSourceName是你的源数据名称
let layer = new FeatureLayer({
url: config.dynamicSpaceLayer,
spatialReference: this.view1.spatialReference,
dynamicDataSource: {
type: 'data-layer',
dataSource: {
type: 'table',
workspaceId: 'shp',
dataSourceName: shpUrl
}
}
/* popupTemplate: {
title: '图斑详情',
content: '{*}'
} */
})
arcgis manager后盾参考资料链接
发表回复