您好,您可以参照以下代码来设置
layer1.setQueryParameter({
url:"//www.supermapol.com/realspace/services/data-BIMbuilding/rest/data",
dataSourceName : "xxx",
isMerge : true
});
layer2.setQueryParameter({
url:"//www.supermapol.com/realspace/services/data-BIMbuilding/rest/data",
dataSourceName : "xxx",
isMerge : true
});