Merge branch 'master' of ssh://117.78.1.188:29418/DDE-WEB
| | |
| | | maxmin: false, |
| | | scrollbar: false, |
| | | shadeClose: true, |
| | | area: ['310px', '480px'], |
| | | area: ['320px', '480px'], |
| | | resize: false, |
| | | offset: ['50px',document.body.clientWidth-320], |
| | | offset: ['50px',document.body.clientWidth-330], |
| | | content: 'project/editLabel.html', |
| | | success: function (layero, index) { |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | |
| | | maxmin: false, |
| | | scrollbar: false, |
| | | shadeClose: true, |
| | | area: ['300px', '330px'], |
| | | area: ['320px', '335px'], |
| | | resize: false, |
| | | offset: ['50px',document.body.clientWidth-320], |
| | | offset: ['50px',document.body.clientWidth-330], |
| | | content: 'project/editPoint.html', |
| | | success: function (layero, index) { |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | |
| | | maxmin: false, |
| | | scrollbar: false, |
| | | shadeClose: true, |
| | | area: ['310px', '300px'], |
| | | area: ['320px', '300px'], |
| | | resize: false, |
| | | offset: ['50px',document.body.clientWidth-320], |
| | | offset: ['50px',document.body.clientWidth-330], |
| | | content: 'project/editLine.html', |
| | | success: function (layero, index) { |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | |
| | | maxmin: false, |
| | | scrollbar: false, |
| | | shadeClose: true, |
| | | area: ['310px', '300px'], |
| | | area: ['320px', '300px'], |
| | | resize: false, |
| | | offset: ['50px',document.body.clientWidth-320], |
| | | offset: ['50px',document.body.clientWidth-330], |
| | | content: 'project/editPolygon.html', |
| | | success: function (layero, index) { |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | |
| | | testConfig= { |
| | | header:_this.entity.title, |
| | | //header:"", |
| | | content:'<textarea class="textarea" style="color:white;width:100%;height:150px;max-width:200px;max-height:150px;background:transparent;"></textarea>' |
| | | content:'<textarea class="textarea" style="color:white;width:100%;height:150px;max-width:200px;max-height:150px;background:transparent;resize:none" readonly="true";></textarea>' |
| | | } |
| | | } |
| | | _this.ctn.append(_this.createHtml(testConfig.header,testConfig.content,_this.id)); |
| | |
| | | color: white; |
| | | } |
| | | .textarea{ |
| | | width: 240px; |
| | | width: 260px; |
| | | height: 140px; |
| | | margin-left: 25px; |
| | | margin-right: 50px; |
| | |
| | | <i class="layui-icon"></i>上传图标 |
| | | </button> |
| | | </div> |
| | | <div> |
| | | <br/> |
| | | <div style="clear: both"> |
| | | <span class="text2">图片</span> |
| | | <button type="button" class="layui-btn layui-bg-black" style="width:150px;height:30px;margin-top:15px;margin-left: 30px;line-height: 30px;float: left;" id="uploadImg"> |
| | | <i class="layui-icon"></i>上传图片 |
| | |
| | | } |
| | | |
| | | } |
| | | else if (type == 'DDE') { |
| | | else if (type == 'DDE') { |
| | | var lon, lat, alt; |
| | | lon = obj.data.lon; |
| | | lat = obj.data.lat; |
| | | alt = obj.data.altitude; |
| | | console.log(lon,lat,alt); |
| | | let flyPromise = viewer.camera.flyTo({ |
| | | duration: 3, |
| | | destination: Cesium.Cartesian3.fromDegrees(Number(lon), Number(lat), alt), |
| | | orientation: { |
| | | heading: Cesium.Math.toRadians(0), //绕垂直于地心的轴旋转 |
| | | pitch: Cesium.Math.toRadians(-90), //绕纬度线旋转 |
| | | roll: Cesium.Math.toRadians(0) //绕经度线旋转 |
| | | }, |
| | | }); |
| | | console.log(lon, lat, alt); |
| | | if (lon != undefined && lat != undefined && alt != undefined) { |
| | | let flyPromise = viewer.camera.flyTo({ |
| | | duration: 3, |
| | | destination: Cesium.Cartesian3.fromDegrees(Number(lon), Number(lat), alt), |
| | | orientation: { |
| | | heading: Cesium.Math.toRadians(0), //绕垂直于地心的轴旋转 |
| | | pitch: Cesium.Math.toRadians(-90), //绕纬度线旋转 |
| | | roll: Cesium.Math.toRadians(0) //绕经度线旋转 |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | , oncheck: function (obj) { |