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

Function _levelClick

js/common/map.js:241–250  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

239 },
240
241 _levelClick(e) {
242 e.preventDefault();
243 e.stopPropagation();
244 this.setLayer(e.target.level);
245 currentLevel = getLevelNumber(e.target.level);
246 if (typeof update_hash === 'function') {
247 update_hash();
248 }
249 redrawMarkers();
250 },
251
252 finalize() {
253 const buttons = $(this._container).find('a');

Callers

nothing calls this directly

Calls 2

getLevelNumberFunction · 0.85
redrawMarkersFunction · 0.85

Tested by

no test coverage detected