react-canvas-map
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i react-canvas-map

Weekly Downloads

11

Version

0.3.3

License

MIT

Unpacked Size

139 kB

Total Files

34

Last publish

Collaborators

  • bor3ham