🗺 A React component for interactive vector maps of the world and 100+ countries
MIT License
🗺️ A React component for interactive vector maps of the world and 100+ countries
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 for more examples and advanced usage of the component.
If you manage to find any, please report them here so they can be squashed.
Grab the repo and then install dependencies with npm i
.
# Run TypeScript check and ESLint
npm run lint
# Run unit tests
npm run test
# Build package for publishing (/dist)
npm run build
# Remove build artifacts (/dist and /coverage)
npm run clean
# npm install for the docs
npm run docs:install
# Start docs for development
npm run docs:start
# Build docs for deployment
npm run docs:build
# Serve docs from /public after build
npm run docs:serve
# Clean up docs folders
npm run docs:clean
MIT, see the LICENSE file.