Right now the plugin does a d3.json ajax call to pull in world.json. Would it be simpler for those who want to use the plugin for it to just be written into the code like var world = JSON.parse({putthetopojsonrighthere})
I know it would be ugly, but would save a configuration step.
What's the best way to implement this so its out of the way?
I would add an option like { worldSrc : 'data/world-data.json' }. By default you could check a path like "data/world.json" like you described it in the readme
Right now the plugin does a d3.json ajax call to pull in world.json. Would it be simpler for those who want to use the plugin for it to just be written into the code like
var world = JSON.parse({putthetopojsonrighthere})
I know it would be ugly, but would save a configuration step.
What's the best way to implement this so its out of the way?