My use case is that I sometimes want to create standalone html files with no external dependencies. This works for US and World maps, because I can embed a base64 encoded version of datamaps.all.min.js. However, for external topojson files, I cannot do that.
If dataUrl could be flexible in accepting a javascript object, then I can read the contents of the json file and assign it to a javascript variable, and inline it so that datamaps will be able to pick it up.
Let me know if this is possible. If you can give me some pointers on how to do it, I can take a crack at it myself and send a pull request.
My use case is that I sometimes want to create standalone html files with no external dependencies. This works for US and World maps, because I can embed a base64 encoded version of
datamaps.all.min.js
. However, for external topojson files, I cannot do that.If
dataUrl
could be flexible in accepting a javascript object, then I can read the contents of thejson
file and assign it to a javascript variable, and inline it so thatdatamaps
will be able to pick it up.Let me know if this is possible. If you can give me some pointers on how to do it, I can take a crack at it myself and send a pull request.
Thanks again for an awesome mapping library!