rowanwins / leaflet-easyPrint

A leaflet plugin which adds an icon to print the map - Demo @ http://rowanwins.github.io/leaflet-easyPrint/
MIT License
248 stars 137 forks source link

Trouble with leaflet illustrate when saving as png #90

Open lstlim opened 5 years ago

lstlim commented 5 years ago

Hi, easyPrint works well, however there's one issue, when I placed a marker on the map using leaflet illustrate and try to download as png file, errors are shown before. Would be good if you could help. Thank you!

errors

ghost commented 5 years ago

Hey,

chrome blocks the XMLHttpRequests to file:// (file: protocol) by default. To enable it, you need to launch chrome via the command prompt with the parameter "--allow-file-access-from-files".

C:...\your\path\to\chrome.exe --allow-file-access-from-files

Please launch chrome with the "--allow-file-access-from-files"-parameter only when you test your code.

I hope that helps.