[英]jsreport - Openlayers not loading
I want to have a report (pdf) showing a map with help of Openlayers. 我想要一份报告(pdf),借助Openlayers显示地图。 Sadly it seems only to work as html and not with chrome-pdf or phanton-pdf. 可悲的是,它似乎只能作为html使用,而不能与chrome-pdf或phanton-pdf一起使用。
Here is my code: https://playground.jsreport.net/w/anon/DLrUNzqm 这是我的代码: https : //playground.jsreport.net/w/anon/DLrUNzqm
I already added a fake timeout of 5000 before setting window.JSREPORT_READY_TO_START = true;
我已经在设置window.JSREPORT_READY_TO_START = true;
之前添加了5000的假超时window.JSREPORT_READY_TO_START = true;
Anyone got an idea why it is not working? 有人知道为什么它不起作用吗?
phantomjs doesn't support the latest javascript so it probably won't work there because of that. phantomjs不支持最新的javascript,因此它可能在那里不起作用。
However properly configured chrome-pdf will work. 但是正确配置的chrome-pdf仍然可以使用。 In your case you just need to enable the printing trigger in the recipe properties. 在您的情况下,您只需要在配方属性中启用打印触发器。
See the working demo here 在这里查看工作演示
https://playground.jsreport.net/w/jan_blaha/PH_1WzLp https://playground.jsreport.net/w/jan_blaha/PH_1WzLp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.