naksha-components-react-x
v0.0.2
Published
Mapbox GL Components for Biodiv
Downloads
4
Maintainers
Readme
Naksha Components React 🗺️
Mapbox GL Components for IndiaBiodiversity
- Components Built with React & Typescript
- Storybook setup for development isolation in Typescript
- Documentation at http://naksha-components-react.netlify.com
Setup
git clone <REPO>
cd naksha-components-react
yarn # or npm i
yarn storybook
Build
yarn build
Build storybook
yarn build:storybook
Usage
// global style bundle
import "naksha-components-react/dist/index.css";
// Layers
import { Layers } from "naksha-components-react";
<Layers
mapboxToken="pk.xxx"
endpoint="https://indiabiodiversity.org"
layersPanelClosed={true}
/>