Color a GeoJSON FeatureCollection so that contiguous areas have different fills
npm install five-color-mapColor a GeoJSON FeatureCollection so that bordering areas never have the same fill. Five colors are all you'll need.
install with npm:
```
$ npm install --save five-color-map
install with npm:
``
$ npm install -g five-color-map`
then`
$ fivecolormap data.geojson > colored-data.geojson
` javascript`
var fiveColorMap = require('five-color-map');
var coloredGeoJSON = fiveColorMap(geojson);
Each feature in coloredGeoJSON.features now has a property fill` with one of five values:
!the five colors used by this package
At least one of your features must have less than 5 neighbors with adjacent sides. This won't work with a map of hexagons.