The earth plugin is simply a wrapper around the topojson, oceans, land, and borders plugins. It parses its configuration and passes pieces of it to the individual plugins.
planetaryjs.plugins.earth([config])
Valid keys for config are:
topojson: options to pass to the topojson pluginoceans: options to pass to the oceans pluginland: options to pass to the land pluginborders: options to pass to the borders pluginplanetaryjs.plugins.earth({
topojson: { file: 'world-110m.json' },
oceans: { fill: '#000080' },
land: { fill: '#339966' },
borders: { stroke: '#008000' }
});
See also: