
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
react-leaflet-map-screenshot
Advanced tools
Hook for use with react-leaflet to take screenshots of the map
React Leaflet hook which takes a screenshot of a Leaflet map. Uses html-to-image.
This is influenced by leaflet-simple-map-screenshoter, in fact it takes a couple of things directly from it - waiting for interactions to finish and an array of elements to hide before taking a screenshot.
I had some issues with that addon, although I think it was mainly with dom-to-image
which it used. I have created this to simplify further the process of capturing a leaflet map as a screenshot, but also using more recent libraries.
npm install react-leaflet-map-screenshot --save
import useMapScreenshot from 'react-leaflet-map-screenshot'
const screenshoter = useMapScreenshot()
const screenshot = await screenshoter.takeScreenshot('png')
FAQs
Hook for use with react-leaflet to take screenshots of the map
The npm package react-leaflet-map-screenshot receives a total of 63 weekly downloads. As such, react-leaflet-map-screenshot popularity was classified as not popular.
We found that react-leaflet-map-screenshot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.