This is a demo of using rCharts
to create a Leaflet
map using KML. It requires you to install the latest dev
branch of rCharts
, which can be done using install_github("rCharts", "ramnathv", ref = "dev")
. The code to reproduce this chart is shown below
# download kml example file
require(downloader)
download(
url = "http://harrywood.co.uk/maps/examples/leaflet/mapperz-kml-example.kml",
destfile = "mapperz-kml-example.kml"
)