MH
Size: a a a
MH
ДШ
AP
ДШ
АЗ
М
М
М
М
YK
YK
loadPointImg(height, width, url) {
let svg = document.createElementNS('http://www.w3.org/2000/svg','svg');
svg.setAttribute('xmlns:xlink','http://www.w3.org/1999/xlink');
svg.setAttribute('height', height);
svg.setAttribute('width', width);
svg.setAttribute('id','test2');
let svgimg = document.createElementNS('http://www.w3.org/2000/svg','image');
svgimg.setAttribute('height', height);
svgimg.setAttribute('width', width);
svgimg.setAttribute('id','testimg2');
svgimg.setAttributeNS('http://www.w3.org/1999/xlink','href', url);
svgimg.setAttribute('x','0');
svgimg.setAttribute('y','0');
svg.appendChild(svgimg);
return svg;
}
SO
loadPointImg(height, width, url) {
let svg = document.createElementNS('http://www.w3.org/2000/svg','svg');
svg.setAttribute('xmlns:xlink','http://www.w3.org/1999/xlink');
svg.setAttribute('height', height);
svg.setAttribute('width', width);
svg.setAttribute('id','test2');
let svgimg = document.createElementNS('http://www.w3.org/2000/svg','image');
svgimg.setAttribute('height', height);
svgimg.setAttribute('width', width);
svgimg.setAttribute('id','testimg2');
svgimg.setAttributeNS('http://www.w3.org/1999/xlink','href', url);
svgimg.setAttribute('x','0');
svgimg.setAttribute('y','0');
svg.appendChild(svgimg);
return svg;
}
SO
document.createElement('img')не ?
SO
М
М
М
SO