Interactive sandbox

Here is a preview of available datasets using thenmap.js, s a simple javascript library for accessing the Thenmap API. For the full documentation, please see github.com/rotsee/thenmap-js.

See api.thenmap.net for a description of available datasets

Recommended projections for this dataset: robinson, eckert4, winkel3, kavrayskiy7, wagner6 and winkel3-pacific

Size in pixels

See the sample doument.

Result

Open map in new window

Download as SVG

thenmap.js settings

Use the below code to put this map on a web page.

<div id="map"></div>
<script src="//drvkoaf101245.cloudfront.net/thenmap-1.0.5.min.js"></script>
var settings = {
 dataKey: "",
 dataset: "world-2",
 date: "2017-04-29"
 language: "en",
 projection: "robinson",
 width:900,
 height:900
};
Thenmap.init("map", settings);

API calls

Use one these API endpoints to fetch data to produce the map above. See the API documentation for details.

Geojson: http://api.thenmap.net/v1/world-2/geo/2017-04-29

Topojson: http://api.thenmap.net/v1/world-2/geo/2017-04-29?geo_type=topojson

SVG: http://api.thenmap.net/v1/world-2/svg/2017-04-29?svg_proj=robinson

Data: http://api.thenmap.net/v1/world-2/data/2017-04-29?data_lang=en&data_props=name|is_in|etc...