Hi,
I am using IgniteUI IGMap control and loading shape files.
I want to export the map as an image to client side.
var pngImage = $(".selector").igMap("exportImage", 200, 100);
var data = $(".selector").igMap("exportVisualData");
Can you tell me how to use the export option to excel using these parameters?
Hello jpavansharma ,
You can try the following function that our igMap provide :
this will provide an image DOM element that you can use. There isn't a direct way to use that or the data url that is its src attribute to save to disk:
http://www.nihilogic.dk/labs/canvas2image/
Essentially if you grab the src of the image that you get back from exportImage, you could feed it into the logic presented on that site and it would let you save an image to disk.
For additional reference on this you could check the following forum thread:
http://ko.infragistics.com/community/forums/t/74018.aspx
Then once you have the src of the image you can send it to your controller and export it to excel by following this link form our documentation:
http://help.infragistics.com/NetAdvantage/jQuery/2012.2/CLR4.0?page=ExcelEngine_Add_an_Image_to_a_Worksheet.html
If you need any additional assistance on this matter please let me know.