| | |
| | | v-show="shwoHistogram"> |
| | | <i class="el-icon-tickets"></i> 钻孔柱状图 |
| | | </div> |
| | | <div class="edit" |
| | | v-show="shwoTileDown" |
| | | @click="tileDownload()"> |
| | | <i class="el-icon-download"></i> 瓦片下载 |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | </template> |
| | |
| | | shwoHistogram: false, // 钻孔柱状图 |
| | | showLocal: false, // 定位 |
| | | showOpacity: false, // 不透明度 |
| | | shwoTileDown: false, // 瓦片下载 |
| | | menuVisible: false, // 菜单 |
| | | levelArray: [ // 高程数组 |
| | | 0, 40000000, 20000000, 10000000, 5000000, 2000000, 1000000, 500000, |
| | |
| | | this.shwoHistogram = this.showProp && object.enName == "s_explorationpoint"; // 钻孔柱状图 |
| | | this.showLocal = ["Tileset", "3DML", "Mpt", "TMS", "DOM", "DEM"].indexOf(object.serveType) > -1; // 定位 |
| | | this.showOpacity = ["Tileset", "3DML"].indexOf(object.serveType) > -1; // 不透明度 |
| | | this.menuVisible = this.showProp || this.shwoHistogram || this.showLocal || this.showOpacity; // 菜单 |
| | | this.shwoTileDown = ["TMS", "DOM"].indexOf(object.serveType) > -1 && object.pubid; // 瓦片下载 |
| | | this.menuVisible = this.showProp || this.shwoHistogram || this.showLocal || this.showOpacity || this.shwoTileDown; // 菜单 |
| | | |
| | | this.$refs.card.$el.style.left = event.pageX + 20 + "px"; |
| | | this.$refs.card.$el.style.top = event.pageY + "px"; |
| | |
| | | |
| | | return this.levelArray[this.levelArray.length - 1]; |
| | | }, |
| | | // 瓦片下载 |
| | | tileDownload () { |
| | | this.rmListener(); |
| | | |
| | | var that = this; |
| | | sgworld.Creator.createSimpleGraphic( |
| | | "rectangle", {}, |
| | | function (entity) { |
| | | that.getTileRectangle(entity); |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | } |
| | | ); |
| | | }, |
| | | // 获取瓦片四至范围 |
| | | getTileRectangle (res) { |
| | | var value = res.rectangle.coordinates.getValue(); |
| | | var val = { |
| | | pubid: this.currentData.pubid, |
| | | pwd: "", |
| | | title: "", |
| | | xmax: Cesium.Math.toDegrees(value.east), |
| | | xmin: Cesium.Math.toDegrees(value.west), |
| | | ymax: Cesium.Math.toDegrees(value.north), |
| | | ymin: Cesium.Math.toDegrees(value.south) |
| | | } |
| | | this.$bus.$emit("titleDown", val); |
| | | }, |
| | | // 图层选中事件 |
| | | handleCheckChange (data, checked) { |
| | | if (this.isBusy) return; |