乐趣区

关于arcgis:arcgis-for-js使用动态空间生成layer

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

退出移动版