| | |
| | | this.createSimpleGraphic("rectangle"); |
| | | break; |
| | | case "c6": //多边形 |
| | | this.createSimpleGraphic("polyhedron"); |
| | | this.createSimpleGraphic("polygon"); |
| | | break; |
| | | case "d2"://等高线分析 |
| | | break |
| | |
| | | this.squareOjb.push(e); |
| | | // earthCtrl.Creator.SimpleGraphic.clear(); |
| | | Viewer.entities.remove(entity); |
| | | debugger |
| | | |
| | | window.functionForJs({ |
| | | type: 'exportMap', |
| | | value: true |
| | |
| | | }, |
| | | // 创建图形 |
| | | createSimpleGraphic(type, scene) { |
| | | earthCtrl.Creator.createSimpleGraphic(type, {}, (entity) => { |
| | | |
| | | sgworld.Creator.createSimpleGraphic(type, {}, (entity) => { |
| | | if (scene === "square") { |
| | | this.createRectangle(entity); |
| | | } |
| | |
| | | }, |
| | | //平面面积 |
| | | planeDistance() { |
| | | earthCtrl.analysis.getPlaneArea(function (e) { }); |
| | | // earthCtrl.analysis.getPlaneArea(function (e) { }); |
| | | var colorAll = { |
| | | point: Cesium.Color.fromCssColorString("#ff0000"), |
| | | polyline: Cesium.Color.fromCssColorString("#ffff0050"), |
| | | polygon: Cesium.Color.fromCssColorString("#ffff0050"), |
| | | }; |
| | | sgworld.Analysis.planeArea(colorAll, () => { |
| | | }); |
| | | |
| | | }, |
| | | //表面距离 |
| | | surfaceDistance() { |
| | | earthCtrl.analysis.getDistanceHorizontal(function (e) { |
| | | console.info(e); |
| | | // earthCtrl.analysis.getDistanceHorizontal(function (e) { |
| | | // console.info(e); |
| | | // }); |
| | | var colorAll = { |
| | | point: Cesium.Color.fromCssColorString("#ff0000"), |
| | | polyline: Cesium.Color.fromCssColorString("#ffff0050"), |
| | | polygon: Cesium.Color.fromCssColorString("#ffff0050"), |
| | | }; |
| | | sgworld.Analysis.horizontalDistance(colorAll, () => { |
| | | }); |
| | | }, |
| | | //点漫游 |