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

Method moveLayer

src/common/util/MapExtend.js:61–73  ·  view source on GitHub ↗
(id, beforeId)

Source from the content-addressed store, hash-verified

59 }
60
61 moveLayer(id, beforeId) {
62 if (this.overlayLayersManager[id]) {
63 this.overlayLayersManager[id].moveLayer
64 ? this.overlayLayersManager[id].moveLayer(id, beforeId)
65 : this._moveToHandler(id, beforeId, product);
66 return this;
67 }
68 if (this.style._layers[id]) {
69 this.style.moveLayer(id, beforeId);
70 this._update(true);
71 }
72 return this;
73 }
74
75 removeLayer(id) {
76 if (this.overlayLayersManager[id]) {

Callers 11

VideoLayerSpec.jsFile · 0.45
FGBLayerSpec.jsFile · 0.45
cbFunction · 0.45
rectifyLayersOrderMethod · 0.45
_createUniqueLayerMethod · 0.45
rectifyLayersOrderMethod · 0.45
mapbox-gl.jsFile · 0.45

Calls 2

_moveToHandlerMethod · 0.95
_updateMethod · 0.45

Tested by

no test coverage detected