为什么官网的BIM示例有添加BIM的代码却不显示bing地图?早前点击建筑有气泡弹出为什么现在没有?
http://support.supermap.com.cn:8090/webgl/examples/editor.html#S3MTiles_BIM
var viewer = new Cesium.Viewer('cesiumContainer'); var scene = viewer.scene; var infoboxContainer = document.getElementById("bubble"); viewer.customInfobox = infoboxContainer; var layer; var promise = scene.open("http://localhost:8091/iserver/services/3D-Ground-CBD/rest/realspace"); //相机设置 Cesium.when(promise,function(layer){ viewer.camera.setView({ destination : Cesium.Cartesian3.fromDegrees(116.42774386919069 ,39.932657418004887, 15000.0) }); layer = scene.layers.find("Building@CBD"); //设置查询参数 layer.setQueryParameter({ url:'http://localhost:8091/iserver/services/data-Ground-CBD/rest/data', dataSourceName:'CBD', dataSetName:'Building' }); }); //添加拾取事件 viewer.pickEvent.addEventListener(function(feature){ console.log(1); });
您照着您的,把我这里面的参数改了,看看F12结果里有没有打印1