- Fixed maxZoom validation on print when switching underlying layers dynamically. Now maxZoom will be used from printLayer if exists.
- Fixed map memory leak after printing.
The complete code has changed! It's now more readable and more structured.
Now it is possible to use BrowserPrint without a Control.
L.browserPrint(map, options)
- More options added:
margin: {left: 10, top: 10, right: 10, bottom: 10
enableZoom
zoom
rotate
scale
orientation
.cancel()
to stop printingbrowser-print-cancel
event added- NPM Scripts:
npm run build
andnpm run watch
- Changed the namespace from
L.Control.BrowserPrint
toL.BrowserPrint
- Default modes have to called now like:
L.BrowserPrint.Mode.Custom(pageSize, options)
- Replaced in the example Leaflet-Draw with Leaflet-Geoman, a more modern drawing plugin
- Added changelog :)
- Handled empty map printing in a correct way.
- Fixed print button styling to comply with latest leaflet version.