maps

A map of France where some departments can be colored

Nov 16, 2019
A map of France where some departments can be colored

React Departements

A map of France where some departments can be colored.

View demo View Github

Installation

$ npm install @socialgouv/react-departements # or $ yarn add @socialgouv/react-departements # `[email protected]+` and `[email protected]+` must be installed $ yarn add react prop-types

Usage

import France from "react-departements"; <France departements={[75, 89, 21, 33, 47, 74, "2a", 976]} />;

See example/src.

Props

Proptypeusagedefault
colorstringcouleur par défaut d'un département#74B4FF
highlightColorstringcouleur du highlight#b3ff75
departementsarrayliste des départements à highlighter[]

Source

Le fond de carte est issu de wikimedia et distribué sous licence Creative Commons Attribution-Share Alike

GitHub

Recommended