React component to show waypoints on the Leaflet map
npm install react-leaflet-waypointsreact-leaflet-waypoints with npm:npm install react-leaflet-waypoints
or yarn add react-leaflet-waypoints
``javascript
import {ReactLeafletWaypoints} from 'react-leaflet-waypoints';
export const MyComponent = () => {
return (
waypoints={[{lat: '40.4381311', lng: '-3.8196196'}, {lat: '42.7576862', lng: '1.5082874'}]}
/>
);
}
`
You can easily check the Storybook in your local.
Clone the repository and move into:
``
git clone git@github.com:ozaytsev86/react-leaflet-waypoints.git
cd react-leaflet-waypoints
Install dependencies:
``
yarn / npm install
Run Storybook
```
yarn sb / npm run sb