| | |
| | | }); |
| | | } |
| | | |
| | | deleteTagGrid(tags) { |
| | | this.changeVisibility({ tags, showGridViews: false }); |
| | | tags.forEach((t) => { |
| | | this.mapViewsMap.delete(t); |
| | | this.gridDataDetailMap.delete(t); |
| | | }); |
| | | } |
| | | |
| | | // 调整各类地图覆盖物的可见性 |
| | | changeVisibility({ tags = [], showGridViews, showDataTxt, showRankTxt }) { |
| | | let { _mapViewsList } = this._getMapViews(...tags); |
| | |
| | | eachheight, |
| | | searchLength |
| | | ); |
| | | if (searchRes.find(v=> v.cellId == 1670)) { |
| | | if (searchRes.find((v) => v.cellId == 1670)) { |
| | | console.log(); |
| | | |
| | | } |
| | | searchRes.forEach((e) => { |
| | | if (originCellIdList.indexOf(e.cellId) == -1) { |
| | |
| | | return heatTag; |
| | | } |
| | | |
| | | drawHeatGrid2(tag, headGridDataDetailList) { |
| | | const heatTag = `heat-${tag}`; |
| | | if (this.mapViewsMap.has(heatTag)) { |
| | | this.changeVisibility({ |
| | | tags: [heatTag], |
| | | showGridViews: true |
| | | }); |
| | | } else { |
| | | this.drawTagGrid({ |
| | | tag: heatTag, |
| | | data: headGridDataDetailList, |
| | | extData: { |
| | | name: `走航热力图 - ${heatTag}`, |
| | | type: 2 |
| | | } |
| | | }); |
| | | } |
| | | return heatTag; |
| | | } |
| | | |
| | | search(gdd, width, height, eachwidth, eachheight, searchLength) { |
| | | function getCellWidthRange(cellId, width, height) { |
| | | const total = width * height; |