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

Method setMap

src/classic/overlay/MapVLayer.js:168–177  ·  view source on GitHub ↗

* @function SuperMap.Layer.MapVLayer.prototype.setMap * @description 图层已经添加到 Map 中。 * 如果当前浏览器支持 canvas,则开始渲染要素;如果不支持则移除图层。 * @param {SuperMap.Map} map - 需要绑定的 map 对象。

(map)

Source from the content-addressed store, hash-verified

166 * @param {SuperMap.Map} map - 需要绑定的 map 对象。
167 */
168 setMap(map) {
169 super.setMap(map);
170 this.renderer = new MapVRenderer(map, this, this.dataSet, this.options);
171 this.renderer.devicePixelRatio = this.devicePixelRatio;
172 if (!this.supported) {
173 this.map.removeLayer(this);
174 } else {
175 this.redraw();
176 }
177 }
178
179 /**
180 * @function SuperMap.Layer.MapVLayer.prototype.moveTo

Callers 8

MapVLayerSpec.jsFile · 0.45
onAddMethod · 0.45
onAddMethod · 0.45
mapv.min.jsFile · 0.45
mapv.jsFile · 0.45
nFunction · 0.45
ol.jsFile · 0.45
mapv.min.jsFile · 0.45

Calls 2

removeLayerMethod · 0.45
redrawMethod · 0.45

Tested by

no test coverage detected