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

Method addControl

test/modules/mapbox/mapbox-gl-mock/map.ts:86–89  ·  view source on GitHub ↗
(control)

Source from the content-addressed store, hash-verified

84 }
85
86 addControl(control) {
87 this._controls.push(control);
88 control.onAdd(this);
89 }
90 removeControl(control) {
91 const i = this._controls.indexOf(control);
92 if (i >= 0) {

Callers

nothing calls this directly

Calls 1

onAddMethod · 0.65

Tested by

no test coverage detected