| | |
| | | > |
| | | <i class="el-icon-download"></i> 瓦片下载 |
| | | </div> |
| | | <div |
| | | class="edit" |
| | | v-show="shwoAnnex" |
| | | @click="annexDownload()" |
| | | > |
| | | <i class="el-icon-tickets"></i> 附件 |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | </template> |
| | |
| | | showOpacity: false, // 不透明度 |
| | | shwoTileDown: false, // 瓦片下载 |
| | | menuVisible: false, // 菜单 |
| | | shwoAnnex: false,//附件 |
| | | levelArray: [ // 高程数组 |
| | | 0, 40000000, 20000000, 10000000, 5000000, 2000000, 1000000, 500000, |
| | | 250000, 200000, 100000, 50000, 17000, 9000, 5000, 2000, 1000, 500, 200, |
| | |
| | | this.showOpacity = ["Tileset", "3DML"].indexOf(object.serveType) > -1; // 不透明度 |
| | | this.shwoTileDown = ["TMS", "DOM"].indexOf(object.serveType) > -1 && object.pubid; // 瓦片下载 |
| | | this.menuVisible = this.showProp || this.shwoHistogram || this.showLocal || this.showOpacity || this.shwoTileDown; // 菜单 |
| | | |
| | | this.shwoAnnex = ['DEM', 'TMS'].indexOf(object.serveType) > -1;//附件 |
| | | 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]; |
| | | }, |
| | | //附件下载 |
| | | annexDownload() { |
| | | this.$bus.$emit('annexDownload', this.currentData) |
| | | }, |
| | | |
| | | // 瓦片下载 |
| | | tileDownload() { |
| | | this.rmListener(); |