| | |
| | | }, |
| | | begin: function (data) { |
| | | var that = this; |
| | | |
| | | window.mySanweiShujuOpens = {};//全局scene.open资源 |
| | | var a = null; |
| | | |
| | | layui.use(function () { |
| | |
| | | that[item.id] = scene.open(host + partOfUrl, undefined, { |
| | | autoSetView: false //不自动定位 |
| | | }); |
| | | |
| | | window.mySanweiShujuOpens[item.id] = that[item.id]; |
| | | // console.log(222) |
| | | topic.publish('appendTilt', 'Layermanagement', item); |
| | | topic.publish('appendTiltS', 'spatialAnalysis', item); |
| | |
| | | that[obj.data.id] = scene.open(host + partOfUrl, undefined, { |
| | | autoSetView: false //不自动定位 |
| | | }); |
| | | // console.log(333) |
| | | window.mySanweiShujuOpens[obj.data.id] = that[obj.data.id]; |
| | | |
| | | topic.publish('appendTilt', 'Layermanagement', obj.data); |
| | | topic.publish('appendTiltS', 'spatialAnalysis', obj.data); |
| | | topic.publish('addLayersLegends', 'legends', obj.data); |