MCPcopy
hub / github.com/visgl/deck.gl / removeLayer

Method removeLayer

test/modules/mapbox/mapbox-gl-mock/map.ts:123–129  ·  view source on GitHub ↗
(layerId)

Source from the content-addressed store, hash-verified

121 this.style.moveLayer(layerId, beforeId);
122 }
123 removeLayer(layerId) {
124 const layer = this.getLayer(layerId);
125 if (layer.type === 'custom' && layer.implementation.onRemove) {
126 layer.implementation.onRemove(this);
127 }
128 this.style.removeLayer(layerId);
129 }
130 getLayer(layerId) {
131 return this.style.getLayer(layerId);
132 }

Callers

nothing calls this directly

Calls 3

getLayerMethod · 0.95
onRemoveMethod · 0.65
removeLayerMethod · 0.65

Tested by

no test coverage detected