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 后盾参考资料链接