| | |
| | | Nowheight: 5, |
| | | Nowrotate: 0, |
| | | beginBOXTailoring: function (pro) { |
| | | console.log(`${this.name}--kaishi`); |
| | | // console.log(`${this.name}--kaishi`); |
| | | $("#beginBOXTailoringG").unbind("click"); |
| | | $("#customBOXTailoring").unbind("click"); |
| | | $("#clearboxBOXTailoring").unbind("click"); |
| | | var that = this; |
| | | var promise = window.mySanweiShujuOpens[pro.id]; |
| | | // var promise = window.mySanweiShujuOpens; |
| | |
| | | if (!boxEntity) { |
| | | return; |
| | | } |
| | | // console.log(135.4135) |
| | | if (!isBegin) { |
| | | layer.tips('请先添加盒子', '#beginBOXTailoringG', { |
| | | tips: [3, 'red'] |
| | |
| | | }, |
| | | promise: 'null', |
| | | closesBOXTailoring: function (froms) { |
| | | console.log(`${this.name}--guanbi`); |
| | | // console.log(`${this.name}--guanbi`); |
| | | var that = this; |
| | | if (that.promise != 'null') { |
| | | Cesium.when(that.promise, function (layers) { |
| | |
| | | |
| | | }, |
| | | beginclippingPlanes: function (promise) { |
| | | console.log(`${this.name}--kaishi`); |
| | | // console.log(`${this.name}--kaishi`); |
| | | var that = this; |
| | | var viewer = that.map; |
| | | // viewer.imageryLayers.addImageryProvider(new Cesium.BingMapsImageryProvider({ |
| | |
| | | isClearBut: '', |
| | | promise: '', |
| | | closesclippingPlanes: function (froms) { |
| | | console.log(`${this.name}--guanbi`); |
| | | // console.log(`${this.name}--guanbi`); |
| | | var that = this; |
| | | |
| | | that.isClearBut = true; |
| | |
| | | }, |
| | | |
| | | removeLayersLegends: function (item, obj) { |
| | | console.log(obj) |
| | | // console.log(obj) |
| | | if (item == this.name) { |
| | | var liList = $(".jimu-widget-legends .layer-legends li"); |
| | | for (var i = 0; i < liList.length; i++) { |
| | |
| | | $('#modelDiagramJW').val(a * it); |
| | | // $('#modelDiagramH').val(); |
| | | $('#modelDiagramJH').val(b * it); |
| | | console.log(a, b, it) |
| | | // console.log(a, b, it) |
| | | }); |
| | | |
| | | }, |
| | |
| | | this.liClick('默认:天地图影像', '默认:天地图影像'); |
| | | |
| | | }, |
| | | morenliClick: (itemid, name) => { |
| | | morenliClick: function (itemid, name) { |
| | | var dom = $('.SelectLayerTool'); |
| | | dom.empty(); |
| | | var str = `${name} <i class="layui-icon layui-icon-down layui-font-12"></i>` |
| | |
| | | // console.log('数据错误默认') |
| | | this.promise = 'NODATA'; |
| | | this.SelectClose();//关闭需要三维数据的窗口 |
| | | |
| | | }, |
| | | SelectClose: function () { |
| | | //关闭平面裁剪 |