MCPcopy Create free account
hub / github.com/Maps4HTML/MapML.js / removeCSS

Function removeCSS

src/mapml/layers/TemplatedFeaturesOrTilesLayer.js:182–187  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

180 this._linkEl.shadowRoot.innerHTML = '';
181 }
182 const removeCSS = (container) => {
183 const styleElements = container.querySelectorAll(
184 'link[rel=stylesheet],style'
185 );
186 styleElements.forEach((element) => element.remove());
187 };
188 removeCSS(this._container);
189
190 //Leave the layers cleared if the layer is not visible

Calls 2

forEachMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected