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

Method _setGraticuleDash

src/common/mapping/WebMapV2.js:687–700  ·  view source on GitHub ↗
(strokeStyle, graticuleLayers)

Source from the content-addressed store, hash-verified

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);

Callers 1

_initGraticuleLayerMethod · 0.95

Calls 3

onMethod · 0.45
getZoomMethod · 0.45
setStrokeStyleMethod · 0.45

Tested by

no test coverage detected