()
| 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`, { |
nothing calls this directly
no outgoing calls
no test coverage detected