()
| 516 | |
| 517 | // Sets controls by hiding/unhiding them based on the map attribute |
| 518 | _toggleControls() { |
| 519 | if (this.controls === false) { |
| 520 | this._hideControls(); |
| 521 | this._map.contextMenu.toggleContextMenuItem('Controls', 'disabled'); |
| 522 | } else { |
| 523 | this._showControls(); |
| 524 | this._map.contextMenu.toggleContextMenuItem('Controls', 'enabled'); |
| 525 | } |
| 526 | } |
| 527 | |
| 528 | _hideControls() { |
| 529 | this._setControlsVisibility('fullscreen', true); |
no test coverage detected