(graticuleInfo)
| 634 | } |
| 635 | |
| 636 | _initGraticuleLayer(graticuleInfo) { |
| 637 | const options = this._createGraticuleOptions(graticuleInfo); |
| 638 | const graticuleLayer = new GraticuleLayer(options); |
| 639 | this._setGraticuleDash(options.strokeStyle, graticuleLayer); |
| 640 | this._graticuleLayer = graticuleLayer; |
| 641 | this.map.addLayer(graticuleLayer); |
| 642 | this._setCacheLayer({ |
| 643 | parentLayerId: graticuleLayer.id, |
| 644 | subRenderLayers: [{ layerId: graticuleLayer.id }, { layerId: graticuleLayer.sourceId }], |
| 645 | metadata: { SM_Layer_Order: 'Top' } |
| 646 | }); |
| 647 | this._addLayerSucceeded(); |
| 648 | } |
| 649 | |
| 650 | _createGraticuleOptions(graticuleInfo) { |
| 651 | let { extent, lonLabelStyle, latLabelStyle } = graticuleInfo; |
no test coverage detected