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

Method addSpecToMap

src/openlayers/mapping/WebMap.js:667–674  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.addSpecToMap * @description 将坐标系为0和-1000的图层添加到地图上 * @param {Object} mapInfo - 地图信息

(source)

Source from the content-addressed store, hash-verified

665 * @param {Object} mapInfo - 地图信息
666 */
667 addSpecToMap(source) {
668 let layer = new olLayer.Tile({
669 source: source,
670 zIndex: 0
671 });
672 this.map.addLayer(layer);
673 this.sendMapToUser(0);
674 }
675 /**
676 * @private
677 * @function WebMap.prototype.getWMTSScales

Callers 1

createSpecLayerMethod · 0.80

Calls 2

sendMapToUserMethod · 0.95
addLayerMethod · 0.45

Tested by

no test coverage detected