Function to convert a shapefile to geojson
1 2 | shp2geojson(shapefile = "eldre", folder = ".", geojson = NULL,
reduce_size = TRUE, amount = 0.1)
|
shapefile |
The basename of shapefile to be converted to geojson |
folder |
The folder where the shapefile is |
geojson |
The name of the geojson file to be created |
reduce_size |
Should the file size be reduced? |
amount |
How much to reduce the file size |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.