Open estratagema opened 6 years ago
Hello,
Did you check this stackoverflow topic about exporting raphael.js generated SVG to image https://stackoverflow.com/questions/14165571/how-to-show-download-raphaeljs-canvas-as-an-imagepng-gif ?
Maybe you could send your current work on JSFiddle in order to try to find the issue !
Hi,
I don’t know about this code. But don’t work in my code. I think because my variable “mapa” is not a raphael variable, it is a mapael variable.
mapa = $("#mapcontainer").mapael(..); var svg = mapa.toSVG(); // toSVG is not a function
call to library canvg and rapahel.exports is ok.
Thanks!
Adolfo
De: Vincent Brouté notifications@github.com Enviado el: miércoles, 24 de octubre de 2018 14:27 Para: neveldo/jQuery-Mapael jQuery-Mapael@noreply.github.com CC: Adolfo Pérez adolfo.perez@estratagema.es; Author author@noreply.github.com Asunto: Re: [neveldo/jQuery-Mapael] Get image of map (#396)
Hello,
Did you check this stackoverflow topic about exporting raphael.js generated SVG to image https://stackoverflow.com/questions/14165571/how-to-show-download-raphaeljs-canvas-as-an-imagepng-gif ?
Maybe you could send your current work on JSFiddle in order to try to find the issue !
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/neveldo/jQuery-Mapael/issues/396#issuecomment-432634331, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALpZPlx38O4oRTLRFxrCMUX_JyPlQgePks5uoFx_gaJpZM4XyXTk.
Hello @estratagema ,
You can retrieve de Raphael object created by Mapael by this way :
$('.mapcontainer').data('mapael').paper;
I hope it will help you !
Hi, I need to obtain a bitmap of the map, plots and legend and save it. I've tried send it to a canvas but don't work. Any idea? Thanks