var url1 = "http://localhost:8090/iserver/services/3D-hainan2/rest/realspace"; //三维服务地址
var url2 = "http://localhost:8090/iserver/services/data-hainan2/rest/data"; //数据服务地址
var promise1 = viewer.scene.open(url1);
Cesium.when(promise1, function (layers) {
var layer11 = viewer.scene.layers.find('SplitSkeletonResult@hainan2');
layer11.setQueryParameter({
url: url2,
dataSourceName: "hainan2", //对应数据源名称,数据服务
dataSetName: "SplitSkeletonResult", //对应数据集名称,数据服务
isMerge: true,
keyWord: 'SmID'
});
})
var url3 = "http://localhost:8090/iserver/services/3D-hainan3/rest/realspace"; //三维服务地址
var url4 = "http://localhost:8090/iserver/services/data-hainan3/rest/data"; //数据服务地址
var promise2 = viewer.scene.open(url3);
//var promise2 = viewer.scene.addS3MTilesLayerByScp(url3);
Cesium.when(promise2, function (layers) {
var layer11 = viewer.scene.layers.find('SplitSkeletonResult@hainan3');
layer11.setQueryParameter({
url: url4,
dataSourceName: "hainan3", //对应数据源名称,数据服务
dataSetName: "SplitSkeletonResult", //对应数据集名称,数据服务
isMerge: true,
keyWord: 'SmID'
});
})
通过iserver发布了两个s3m数据,在pickevent中如何获取对应的数据源或数据集名称?