TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gautam Parmar
NA
867
22k
Converted PNG Image from SVG Is Blank
Oct 10 2017 2:27 AM
I have one of client has some there own MAP which is coming from map tag into code
while it binds svg at running time.
When I convert SVG to png image is coming blank while my svg has map of selected area.
var
svg = document.getElementById(
'OpenLayers_Layer_Vector_75_svgRoot'
);
var
xml =
new
XMLSerializer().serializeToString(svg);
var
data =
"data:image/svg+xml;base64,"
+ btoa(xml);
var
img =
new
Image();
img.setAttribute(
'src'
, data);
document.body.appendChild(img);
Reply
Answers (
3
)
vertical spinner with images
Regex.Replace(str, @"[^0-9a-zA-Z]+", "-") i