bluehalo / ngx-leaflet-tutorial-plugins

MIT License
22 stars 10 forks source link

Add Leaflet.BrowserPrint sample #1

Closed sgrillon14 closed 6 years ago

sgrillon14 commented 6 years ago

online demo here capture d ecran 2018-02-03 a 17 59 56

reblace commented 6 years ago

I ran into an issue using v0.5.0 of leaflet.browser.print. It gives an npm error about the hash of the tgz file not matching.

As a result, I downgraded to 0.4.0 and updated a couple things to get it working with that version. If you find a solution (or if you cannot reproduce the issue, let me know.

sgrillon14 commented 6 years ago

version v0.5.0 function well. version v0.5.0 was created precisely to work with angular (change L.browserPrint() by L.control.browserPrint()) issue #15

I find error in my PR. I do not use yarn (so yarn.lock is wrong) I put a fake hash of the tgz file in my PR.

reblace commented 6 years ago

ok, yarn.lock was wrong. That's probably what caused it. I'll check it out.

reblace commented 6 years ago

Should be good now.