workspaceIds下图位置处
image.png
dataSourceName是你的源数据名称
路径后面别忘了跟dynamicLayer

let layerValue = new FeatureLayer({
            id: 'tempLyr',
            url:
              'http://***.***.***.***:6443/arcgis/rest/service/MapServer/dynamicLayer',
            dynamicDataSource: {
              type: 'data-layer',
              dataSource: {
                type: 'table',
                workspaceId: 'ZTShapefileWorkspaceID',
                dataSourceName: '41.shp'
              }
            }
          })

arcgis manager后台参考资料链接


友人A
81 声望11 粉丝