Description Usage Arguments Value Author(s) References See Also Examples
Generates geojson country map using sp files from http://gadm.org/
1 2 | getGeoJson(country, iso = FALSE, lvl = 0, saveRaw = FALSE,
saveJson = TRUE, folder = "./")
|
country |
Country name, or its iso 3 abbreviation |
iso |
Flag to accept ISO 3166-1 alpha-3 code if TRUE. Defauls value is FALSE. |
lvl |
Map detalisation level, varies from the country border (lvl = 0) to country regions/provinces borders. Highest available lvl cab be found in |
saveRaw |
Should the downloaded sp file be saved? Defauls value is FALSE. |
saveJson |
Should the generated geojson file be saved? Defauls value is TRUE. |
folder |
Folder to save files. |
json |
Generated geojson map. |
bbox |
Bounding box of the map, contains the min and man values of the longitude and latitude coordinates. |
The map data are from http://gadm.org/
1 2 3 | #geojson map of Germany
map <- getGeoJson("DEU", iso = TRUE, saveJson = FALSE)
map <- getGeoJson("Germany", saveJson = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.