2014-10-10 78 views

回答

1

有幾個方法,你可以在地圖轉換爲圖像這些在下面列出。要在應用程序中保存圖像,您需要使用carrierwave或文件處理選項。

您可以直接html2canvas轉換做到這一點:

http://html2canvas.hertzen.com/examples.html

Highchart還提供方式導出圖像:

http://www.highcharts.com/docs/export-module/export-module-overview http://api.highcharts.com/highcharts#exporting.buttons.contextButton.onclick

使用wkhtmltoimage用於圖像轉換

Rails的寶石:

https://github.com/csquared/IMGKit

+0

jsfiddle here http://jsfiddle.net/348sh/3/ – 2014-10-10 08:24:29

+0

jsfiddle中的示例是要求保存寫入的路徑?我們想要自動取路徑 – lucifer 2015-01-14 08:04:29

相關問題