v3.0.0
gzip size
Github

Examples

Basic annotation
Basic markers
Basic world map
Custom markers
Europe map with graticule
Graticule
Mapchart with texture
Mapchart with tooltip
Proportional symbol map
US choropleth map (quantile)
US choropleth map(quantize)
US states map with labels
World choropleth mapchart
Map with zoom and pan

Basic world map

This example illustrates the easiest way to display a world map based on a custom topojson file. You can replace the map file with any valid topojson file.

Since this example focuses on the simplest possible version of a world map it omits the implementation of zooming and panning. If you are interested in the ZoomableGroup component and in adding zooming and panning capabilities to your map, check out the zoom-pan example.

Custom geographies

If you want to use your own shapefiles with react-simple-maps check out this tutorial on how to convert shapefiles to topojson using mapshaper.org.

Newsletter

Sign up to the React Simple Maps newsletter and be the first one to know when we publish new stuff.

Contact us

React Simple Maps was created by z creative labs. We turn ideas into digital products and specialise in dataviz and data-driven design. Are you looking for someone to create custom mapcharts and data visualisations?

Get in touch

React Simple Maps