MCPcopy Create free account
hub / github.com/Maps4HTML/MapML.js / noTemplateVisible

Method noTemplateVisible

src/map-extent.js:361–370  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

359 'map-link[rel=image],map-link[rel=tile],map-link[rel=features],map-link[rel=query]'
360 );
361 const noTemplateVisible = () => {
362 let totalTemplateCount = templates.length,
363 disabledTemplateCount = 0;
364 for (let j = 0; j < totalTemplateCount; j++) {
365 if (!templates[j].isVisible()) {
366 disabledTemplateCount++;
367 }
368 }
369 return disabledTemplateCount === totalTemplateCount;
370 };
371 if (!this._projectionMatch() || noTemplateVisible()) {
372 this.setAttribute('disabled', '');
373 this.disabled = true;

Callers

nothing calls this directly

Calls 1

isVisibleMethod · 0.80

Tested by

no test coverage detected