| | |
| | | that[item.id] = scene.open(host + partOfUrl, undefined, { |
| | | autoSetView: false //不自动定位 |
| | | }); |
| | | console.log(222) |
| | | topic.publish('appendTilt', 'Layermanagement', item); |
| | | topic.publish('appendTiltS', 'spatialAnalysis', item); |
| | | topic.publish('addLayersLegends', 'legends', item); |
| | |
| | | destination: rectangle |
| | | }); |
| | | }); |
| | | console.log(444) |
| | | topic.publish('appendItem', 'Layermanagement', item, that[item.id]); |
| | | topic.publish('appendItemS', 'spatialAnalysis', item, that[item.id]); |
| | | topic.publish('addLayersLegends', 'legends', item); |
| | |
| | | dataType: 'JSON', |
| | | success: function (res) { |
| | | |
| | | |
| | | // console.log(111) |
| | | that[item.id] = that.map.imageryLayers.addImageryProvider(new Cesium.SuperMapImageryProvider({ |
| | | url: res[0].path, |
| | | })); |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } else { |
| | |
| | | that[obj.data.id] = scene.open(host + partOfUrl, undefined, { |
| | | autoSetView: false //不自动定位 |
| | | }); |
| | | console.log(333) |
| | | topic.publish('appendTilt', 'Layermanagement', obj.data); |
| | | topic.publish('appendTiltS', 'spatialAnalysis', obj.data); |
| | | topic.publish('addLayersLegends', 'legends', obj.data); |
| | |
| | | destination: rectangle |
| | | }); |
| | | }); |
| | | console.log(555) |
| | | topic.publish('appendItem', 'Layermanagement', obj.data, that[obj.data.id]); |
| | | topic.publish('appendItemS', 'spatialAnalysis', obj.data, that[obj.data.id]); |
| | | topic.publish('addLayersLegends', 'legends', obj.data); |