()
| 637 | |
| 638 | _validateDisabled() { |
| 639 | const countTileLayers = () => { |
| 640 | let totalCount = 0; |
| 641 | let disabledCount = 0; |
| 642 | |
| 643 | this._layer.eachLayer((layer) => { |
| 644 | if (layer instanceof MapTileLayer) { |
| 645 | totalCount++; |
| 646 | if (!layer.isVisible()) disabledCount++; |
| 647 | } |
| 648 | }); |
| 649 | |
| 650 | return { totalCount, disabledCount }; |
| 651 | }; |
| 652 | const countFeatureLayers = () => { |
| 653 | let totalCount = 0; |
| 654 | let disabledCount = 0; |