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

Method _toggleControls

src/web-map.js:560–568  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 4

_createMapMethod · 0.95
MapLayer.jsFile · 0.45
ContextMenu.jsFile · 0.45

Calls 2

_hideControlsMethod · 0.95
_showControlsMethod · 0.95

Tested by

no test coverage detected