R htmlwidget for mapshaper
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
examples
images
inst/htmlwidgets
man
.Rbuildignore
DESCRIPTION
LICENSE
NAMESPACE
README.md
build.R
mapshaper_htmlwidget.Rproj

README.md

R htmlwidget for mapshaper

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)

screenshot of mapshaper

To-do

  • Hook it up to Shiny so the export result is returned to R or the hover info is provided to R.
  • Separate JS dependencies, namespace css, and isolate components so that it will play nicely with other htmlwidgets