1015 B
1015 B
Earth Plugin
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.
API
planetaryjs.plugins.earth([config])
Valid keys for config are:
topojson: options to pass to thetopojsonpluginoceans: options to pass to theoceanspluginland: options to pass to thelandpluginborders: options to pass to thebordersplugin
JavaScript
planetaryjs.plugins.earth({
topojson: { file: 'world-110m.json' },
oceans: { fill: '#000080' },
land: { fill: '#339966' },
borders: { stroke: '#008000' }
});
See also: