简体   繁体   中英

jsreport - Openlayers not loading

I want to have a report (pdf) showing a map with help of Openlayers. Sadly it seems only to work as html and not with chrome-pdf or phanton-pdf.

Here is my code: https://playground.jsreport.net/w/anon/DLrUNzqm

I already added a fake timeout of 5000 before setting 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.

However properly configured chrome-pdf will work. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM