chriswhong / leaflet-globeminimap

A 3d Globe minimap for leaflet
BSD 2-Clause "Simplified" License
121 stars 21 forks source link

Add topojson to the main code #2

Open chriswhong opened 8 years ago

chriswhong commented 8 years ago

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?

moklick commented 8 years ago

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