MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / _initGraticuleLayer

Method _initGraticuleLayer

src/common/mapping/WebMapV2.js:636–648  ·  view source on GitHub ↗
(graticuleInfo)

Source from the content-addressed store, hash-verified

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;

Callers 1

_handleLayerInfoMethod · 0.95

Calls 5

_setGraticuleDashMethod · 0.95
_setCacheLayerMethod · 0.95
_addLayerSucceededMethod · 0.95
addLayerMethod · 0.45

Tested by

no test coverage detected