首页 / 浏览问题 / 三维GIS / 问题详情
webgl怎么查询数据源下有多少个数据集呢
68EXP 2020年10月15日
webgl怎么查询数据源下有多少个数据集及数据集名称,想利用数据源的数据集动态生成图层管理目录

2 个回答

通过iserver rest api对datasources 资源执行 GET 请求,就可以获取数据集数量以及数据集名称list数组。
地址:http://support.supermap.com.cn/DataWarehouse/WebDocHelp/iServer/index.htm

27。
1
1,255EXP 2020年10月15日

一个图层就应该对应一个数据集,layers下面就是图层信息。如果您使用的批量生成模型缓存的话,查询参考范例:http://support.supermap.com.cn:8090/webgl/examples/editor.html#S3MTiles_BIM

接口:isMerge:true

 layer.setQueryParameter({
                    url:"http://www.supermapol.com/realspace/services/data-BIMbuilding/rest/data",
                    dataSourceName : layer._name,
                    isMerge : true
                });

6,077EXP 2020年10月15日
...