Build your map

Click the map to select your countries or choose from the presets to the right.


How detailed does your map need to be?


Choose from some preset regions

The Setup

To use your map with Leaflet:

  1. Rename your downloaded geojson file and publish it to your webserver.
  2. Create a HTML page using the template below.
  3. Replace myGeoJSONPath with the path to your own file.
  4. That's it!

The Code

<!DOCTYPE html>
    <title>Leaflet GeoJSON Example</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="" />
    <style type="text/css">

    <div id="map" style="width: 600px; height: 400px"></div>

    <script src=""></script>
    <script src=""></script>
        var myGeoJSONPath = 'path/to/mymap.geo.json';
        var myCustomStyle = {
            stroke: false,
            fill: true,
            fillColor: '#fff',
            fillOpacity: 1
            var map ='map').setView([39.74739, -105], 4);

            L.geoJson(data, {
                clickable: false,
                style: myCustomStyle


A preview

Your custom map is shown below. Your map size is 0 KB (before gzip compression.)

Further Reading

If you're still not sure, check out the following resource for some background and explainers.

Fork me on GitHub