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

Method _toggleStatic

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

Source from the content-addressed store, hash-verified

678 }
679 }
680 _toggleStatic() {
681 const isStatic = this.hasAttribute('static');
682 if (this._map) {
683 if (isStatic) {
684 this._map.dragging.disable();
685 this._map.touchZoom.disable();
686 this._map.doubleClickZoom.disable();
687 this._map.scrollWheelZoom.disable();
688 this._map.boxZoom.disable();
689 this._map.keyboard.disable();
690 this._zoomControl.disable();
691 } else {
692 this._map.dragging.enable();
693 this._map.touchZoom.enable();
694 this._map.doubleClickZoom.enable();
695 this._map.scrollWheelZoom.enable();
696 this._map.boxZoom.enable();
697 this._map.keyboard.enable();
698 this._zoomControl.enable();
699 }
700 }
701 }
702
703 _dropHandler(event) {
704 event.preventDefault();

Callers 2

connectedCallbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected