Import shapefiles from http://www.naturalearthdata.com
and extract the contents in preperation for converting the shapefile to
GeoJSON using geojson_convert
.
1 2 | shape_fetch(ne.type = "physical", ne.filename = "ne_110m_land",
ne.scale = "110m", dest = "./data/natural-earth")
|
ne.type |
Set the type of map (see http://www.naturalearthdata.com/downloads/ for details). Supports: 'physical' and 'cultural' (default value is 'physical'). |
ne.filename |
Set the map layer (see http://www.naturalearthdata.com/downloads/ for details). Default value is 'ne_110m_land'. |
ne.scale |
Set the map scale (see http://www.naturalearthdata.com/downloads/ for details). Supports: '10m' (1:10m), '50m' (1:50m), and '110m' (1:110m) (default value is '110m'). Please note that '10m' file size is large. |
dest |
Set the path of the destination folder the downloaded zip file will be extracted into (default path is './data/natural-earth'). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.