Socket
Socket
Sign inDemoInstall

leaflet.browser.print

Package Overview
Dependencies
0
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
8Next

2.0.2

Diff

Changelog

Source

[2.0.2] - 2022-03-11

  • 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.
igor.vladyka
published 2.0.1 •

igor.vladyka
published 2.0.0 •

Changelog

Source

[2.0.0] - 2020-11-06

!!Breaking Changes!!

The complete code has changed! It's now more readable and more structured.

Now it is possible to use BrowserPrint without a Control.

Added

  • L.browserPrint(map, options)
  • More options added:
    • margin: {left: 10, top: 10, right: 10, bottom: 10
    • enableZoom
    • zoom
    • rotate
    • scale
    • orientation
  • .cancel() to stop printing
  • browser-print-cancel event added
  • NPM Scripts: npm run build and npm run watch

Changed

  • Changed the namespace from L.Control.BrowserPrint to L.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
igor.vladyka
published 1.0.6 •

igor.vladyka
published 1.0.5 •

igor.vladyka
published 1.0.4 •

igor.vladyka
published 1.0.3 •

igor.vladyka
published 1.0.2 •

igor.vladyka
published 1.0.1 •

igor.vladyka
published 1.0.0 •

2345
8Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc