()
| 558 | |
| 559 | // Sets controls by hiding/unhiding them based on the map attribute |
| 560 | _toggleControls() { |
| 561 | if (this.controls === false) { |
| 562 | this._hideControls(); |
| 563 | this._map.contextMenu.toggleContextMenuItem('Controls', 'disabled'); |
| 564 | } else { |
| 565 | this._showControls(); |
| 566 | this._map.contextMenu.toggleContextMenuItem('Controls', 'enabled'); |
| 567 | } |
| 568 | } |
| 569 | |
| 570 | _hideControls() { |
| 571 | this._setControlsVisibility('fullscreen', true); |
no test coverage detected