Closed joelgombin closed 10 years ago
You should be able to use relative paths to the topojson
file. This wont work currently from your local computer since, only the HTML file generated gets copied to a temporary folder, from where a local webserver gets launched. I am working on a way to allow other files to get copied too, so that the relative references don't break.
Does this make sense?
yes, in combination with your other answer, that makes great sense! Thanks!
Hi Ramnath,
this may be of interest to you or others willing to use local topojson files: I created a small function to convert R SpatialPolygonsDataFrame files to topojson: https://github.com/joelgombin/toTopoJSON.
@joelgombin That looks great. You will want to take a look at the togeojson package that attempts to consolidate all functions required to deal with converting R objects to geojson/topojson.
I've seen it. I'd be happy if @sckott or the guys at @ropensci want to integrate my code in their package.
Great, thanks @joelgombin - I'll have a look very soon
When using a custom TopoJSON file, is it possible to reference a relative path to the topoJSON file, rather than having to upload it to, e.g., github? In other words, I guess my question is, what is the root of the server used by rMaps?