Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-canvas-map

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-canvas-map

An interactive canvas-based map component for React.

  • 0.3.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-canvas-map

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.

Installation

To use simply install from npm:

npm install react-canvas-map

Check out the examples on the demo site for implementation example code.

Development Environment

Setup

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

Running

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.

Linting

In both the package root or demo directory: npm run lint.

FAQs

Package last updated on 13 Jun 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc