* @private * @function WebMap.prototype.addGraticule * @description 创建经纬网 * @param {Object} mapInfo - 地图信息
(mapInfo)
| 5440 | * @param {Object} mapInfo - 地图信息 |
| 5441 | */ |
| 5442 | addGraticule(mapInfo) { |
| 5443 | if (this.isHaveGraticule) { |
| 5444 | this.createGraticuleLayer(mapInfo.grid.graticule); |
| 5445 | this.layerAdded++; |
| 5446 | const lens = mapInfo.layers ? mapInfo.layers.length : 0; |
| 5447 | this.sendMapToUser(lens); |
| 5448 | } |
| 5449 | } |
| 5450 | |
| 5451 | /** |
| 5452 | * @private |
no test coverage detected