MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / _enableLink

Method _enableLink

src/map-link.js:374–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372 }
373 }
374 async _enableLink() {
375 switch (this.rel.toLowerCase()) {
376 case 'tile':
377 case 'image':
378 case 'features':
379 case 'query':
380 this._initTemplateVars();
381 await this._createTemplatedLink();
382 this.getLayerEl()._validateDisabled();
383 break;
384 case 'stylesheet':
385 this._createStylesheetLink();
386 break;
387 }
388 }
389 async _registerMediaQuery(mq) {
390 if (!this._changeHandler) {
391 // Define and bind the change handler once

Callers 1

Calls 5

_initTemplateVarsMethod · 0.95
_createTemplatedLinkMethod · 0.95
getLayerElMethod · 0.95
_createStylesheetLinkMethod · 0.95
_validateDisabledMethod · 0.45

Tested by

no test coverage detected