MCPcopy Create free account
hub / github.com/c3bottles/c3bottles / onAdd

Function onAdd

js/common/map.js:185–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183 },
184
185 onAdd() {
186 this._container = L.DomUtil.create('div', `leaflet-control-levels leaflet-bar ${this.options.addClasses}`);
187 this._tileLayers = {};
188 this._overlayLayers = {};
189 this._levelButtons = {};
190 this.currentLevel = null;
191
192 return this._container;
193 },
194
195 addLayer(id, title) {
196 this._tileLayers[id] = L.tileLayer(`${mapSource.tileserver + String(id)}/{z}/{x}/{y}.png`, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected