R htmlwidget for mapshaper
August 10, 2015 ยท View on GitHub
mapshaper is an incredibly powerful set of tools to simplify and edit maps from Shapefile, geoJSON, TopoJSON, and other file formats. This htmlwidget brings mapshaper to your R experience.
#devtools::install_github("timelyportfolio/mapshaper_htmlwidget")
library(mapshaperWidget)
library(tmap)
library(sp)
data(World)
plot(World)
mapshaper(World)

To-do
- Hook it up to
Shinyso the export result is returned toRor the hover info is provided toR. - Separate JS dependencies, namespace css, and isolate components so that it will play nicely with other
htmlwidgets