MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / addGraticule

Method addGraticule

src/openlayers/mapping/WebMap.js:5442–5449  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.addGraticule * @description 创建经纬网 * @param {Object} mapInfo - 地图信息

(mapInfo)

Source from the content-addressed store, hash-verified

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

Callers 1

getMapInfoSuccessMethod · 0.80

Calls 2

createGraticuleLayerMethod · 0.95
sendMapToUserMethod · 0.95

Tested by

no test coverage detected