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

Function copyAttributes

src/mapml/layers/TemplatedTileLayer.js:237–242  ·  view source on GitHub ↗
(source, target)

Source from the content-addressed store, hash-verified

235 container.insertAdjacentElement('afterbegin', ss[s]);
236 }
237 function copyAttributes(source, target) {
238 return Array.from(source.attributes).forEach((attribute) => {
239 if (attribute.nodeName !== 'href')
240 target.setAttribute(attribute.nodeName, attribute.nodeValue);
241 });
242 }
243 },
244
245 _createFeatures: function (markup, coords, tile) {

Callers 3

_connectMethod · 0.85
_createStylesheetLinkMethod · 0.85

Calls 2

forEachMethod · 0.80
setAttributeMethod · 0.80

Tested by

no test coverage detected