(strokeStyle, graticuleLayers)
| 685 | } |
| 686 | |
| 687 | _setGraticuleDash(strokeStyle, graticuleLayers) { |
| 688 | this.map.on('zoomend', () => { |
| 689 | if (this.map.getZoom() < 3) { |
| 690 | graticuleLayers.setStrokeStyle({ |
| 691 | ...strokeStyle, |
| 692 | lineOpacity: 0.5, |
| 693 | lineWidth: strokeStyle.lineWidth / 2, |
| 694 | lindDasharray: [0.1, 3] |
| 695 | }); |
| 696 | } else { |
| 697 | graticuleLayers.setStrokeStyle(strokeStyle); |
| 698 | } |
| 699 | }); |
| 700 | } |
| 701 | |
| 702 | _createTiandituLayer(mapInfo, addedCallback) { |
| 703 | const tiandituUrls = this._getTiandituUrl(mapInfo); |
no test coverage detected