| 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; |