ramnathv / rMaps

Interactive Maps from R
http://rmaps.github.io
389 stars 194 forks source link

Publish Datamaps #27

Closed joelgombin closed 10 years ago

joelgombin commented 10 years ago

Maybe I'm missing something very obvious, but once I've succesfully drawn a Datamaps map, how can I publish it online (e.g. on my own server)?

ramnathv commented 10 years ago

Publishing datamaps should be no different from publishing anything in rCharts. If you generate the file using

n1$save('mymap.html', cdn = TRUE)

you will have a single HTML file that you an upload anywhere. Note that the js/css assets are still served from an online cdn link, so the resulting HTML file is not truly standalone, but will work online.

If you have custom topojson files, then you need to upload them as well and make sure that dataURL refers to the correct relative path.

joelgombin commented 10 years ago

Great, thanks!