MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / _toggleControls

Method _toggleControls

src/mapml-viewer.js:518–526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

_createMapMethod · 0.95

Calls 2

_hideControlsMethod · 0.95
_showControlsMethod · 0.95

Tested by

no test coverage detected