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

Method onRemove

src/mapboxgl/overlay/FGBLayer.js:112–117  ·  view source on GitHub ↗

* @function FGBLayer.prototype.onRemove

()

Source from the content-addressed store, hash-verified

110 * @function FGBLayer.prototype.onRemove
111 */
112 onRemove() {
113 if (this.map.getLayer(this.layerId)) {
114 this.map.removeLayer(this.layerId);
115 }
116 this.map.off('moveend', this._updateFeaturesFn);
117 }
118 /**
119 * @function FGBLayer.prototype.on
120 */

Callers

nothing calls this directly

Calls 3

getLayerMethod · 0.45
removeLayerMethod · 0.45
offMethod · 0.45

Tested by

no test coverage detected