
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
react-canvas-map
Advanced tools
Please note that this package is not intended for world maps or integrating with any large map datasets. It is instead for displaying a single static image, zooming and panning around it, with markers and drop zones in 2d space relative to that image.
Check out the live demo page to see it in action.
To use simply install from npm
:
npm install react-canvas-map
Check out the examples on the demo site for implementation example code.
From the root directory, install the requirements of the base package with yarn
/ npm
:
npm install
Likewise do the same in the demo folder:
cd demo
npm install
If you don't already have ruby
installed, follow their
installation instructions.
Install jekyll
using ruby
:
gem install jekyll
gem install jekyll-seo-tag
To watch the base package's code for changes and rebuild on the fly, run the following from the project root directory:
npm run watch
Simultaneously, to watch the demo project's files for changes and rebuild / host the static files, run the following from the demo directory:
cd demo
npm run start
You will be able to access a hosted copy of your demo site at localhost:4000
, and any javascript
or css
changes to either the base package or the demo site will be reflected there after a browser
refresh.
In both the package root or demo directory: npm run lint
.
FAQs
An interactive canvas-based map component for React.
The npm package react-canvas-map receives a total of 2,358 weekly downloads. As such, react-canvas-map popularity was classified as popular.
We found that react-canvas-map demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.