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

Method blur

src/map-feature.js:732–742  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

730
731 // a method that makes the <g> element lose focus, or invoking the user-defined blur event
732 blur() {
733 if (
734 document.activeElement.shadowRoot?.activeElement === this._groupEl ||
735 document.activeElement.shadowRoot?.activeElement.parentNode ===
736 this._groupEl
737 ) {
738 this._groupEl.blur();
739 // set focus to the map container
740 this.getMapEl()._map.getContainer().focus();
741 }
742 }
743
744 // a method that can the viewport to be centred on the feature's extent
745 zoomTo() {

Callers 1

mapFeature.test.jsFile · 0.80

Calls 2

getMapElMethod · 0.95
focusMethod · 0.80

Tested by

no test coverage detected