| | |
| | | } |
| | | |
| | | function clearText(mapViews) { |
| | | if (mapViews && typeof mapViews.textViews === 'object') { |
| | | map.remove(mapViews.textViews); |
| | | if (mapViews) { |
| | | if (typeof mapViews.dataTxt === 'object') { |
| | | map.remove(mapViews.dataTxt); |
| | | } |
| | | if (typeof mapViews.dataLayer === 'object') { |
| | | map.remove(mapViews.dataLayer); |
| | | } |
| | | if (typeof mapViews.rankTxt === 'object') { |
| | | map.remove(mapViews.rankTxt); |
| | | } |
| | | if (typeof mapViews.rankLayer === 'object') { |
| | | map.remove(mapViews.rankLayer); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | function drawPolyline(gridInfo) { |
| | | // 绘制网格 |
| | | const points = gridInfo.map((v) => { |
| | | // return calculate.wgs84_To_Gcj02(v.longitude, v.latitude); |
| | | return [v.longitude, v.latitude]; |
| | | return calculate.wgs84_To_Gcj02(v.longitude, v.latitude); |
| | | // return [v.longitude, v.latitude]; |
| | | }); |
| | | // const gridPoints = gridMapUtil.parseGridPoint(points); |
| | | // console.log('gridPoints:', gridPoints); |