| | |
| | | |
| | | onOpen: function () { |
| | | var self = this; |
| | | // this.map.scene.globe.depthTestAgainstTerrain = false; |
| | | // this.map.scene.globe.depthTestAgainstTerrain = false; |
| | | $.ajax({ |
| | | url: 'http://localhost:82/blade-ycreal/layer/list', |
| | | dataType: 'json', |
| | |
| | | var result = null; |
| | | // 存储url最后面数字的 |
| | | var layersNumber = null; |
| | | // 存储 true, false |
| | | // 存储 true, false |
| | | var layerShow = null; |
| | | // 存储除数字外的URL |
| | | var layersUrl = null; |
| | |
| | | }, |
| | | // 注册鼠标左键单击事件 |
| | | clickHandLayer: function (movement) { |
| | | $('#map2d').hide(); |
| | | var self = this; |
| | | var pickRay = this.map.camera.getPickRay(movement.position); |
| | | var featuresPromise = this.map.imageryLayers.pickImageryLayerFeatures(pickRay, this.map.scene); |