# `@planet/layers`

React components for OpenLayers.

# setup

Install [Node 8+](https://nodejs.org/en/) (use [`nvm`](https://github.com/creationix/nvm) to manage multiple versions of Node).  Install dependencies with `npm`:

    npm install

To work with the docs during development:

    npm start

Docs are build with `npm run build:docs` and hosted here: https://apps.pages.earth.planet.com/layers/

To publish package changes to another local project, use the `npm run local-pub` script.  This will start a file watcher, rebuild the package on `src` changes, and copy the result to the `node_modules` directory of another project.  For example:

    npm run local-pub -- ../other-project

Note that this requires that the target project has all of this project's dependencies installed.
