@south-paw/react-vector-maps
Version:
A React component for interactive vector maps of the world and 100+ countries
68 lines (43 loc) • 1.83 kB
Markdown
🗺️ A React component for interactive vector maps of the world and 100+ countries
[](https://www.npmjs.com/package/@south-paw/react-vector-maps)
- Simple and easy to implement React component for rendering interactive vector maps
- [100+ vector maps included](https://react-vector-maps.netlify.com/maps) out of the box, free from [MapSVG](https://mapsvg.com/maps)
- Convert your own vector map for the component to use with the [online converter](https://react-vector-maps.netlify.com/converter)
- Quick and straight forward to style your map however you want to
```jsx
import React from 'react';
import { VectorMap } from '@south-paw/react-vector-maps';
// You'll need to download the json file from the docs site or you can create your own.
import world from './world.json';
export const Map = () => <VectorMap {...world} />;
```
See the [documentation](https://react-vector-maps.netlify.com/) for more examples and advanced usage of the component.
If you manage to find any, please report them [here](https://github.com/South-Paw/react-vector-maps/issues) so they can be squashed.
Grab the repo and then install dependencies with `npm i`.
```bash
npm run lint
npm run test
npm run build
npm run clean
npm run docs:install
npm run docs:start
npm run docs:build
npm run docs:serve
npm run docs:clean
```
MIT, see the [LICENSE](./LICENSE) file.