Igor-Vladyka / leaflet.browser.print

A leaflet plugin which allows users to print the map directly from the browser
https://igor-vladyka.github.io/leaflet.browser.print/
MIT License
154 stars 76 forks source link

Cant register Vectorgrid layer #79

Closed zogs closed 4 years ago

zogs commented 4 years ago

Hello, First of all, thank you for this cool extension ! It's work like a charm.

Except it seems that Vectorgrid layer are not supported... I tried to register it, but for some reason it is not working...

I made a sandbox so you can visualize what i tried -> https://codesandbox.io/s/leaflet-vectorgrid-print-test-p0n0n. Maybe you can help me find what i did wrong...

Thank you

Igor-Vladyka commented 4 years ago

Hello,

Here is updated codesandbox: https://codesandbox.io/s/leaflet-vectorgrid-print-test-k9leh.

You should use classes for registration and not factory methods.

Regards.