938 B
938 B
Land Plugin
The land plugin renders Earth's landmasses. It uses TopoJSON data published to planet.plugins.topojson.world by the TopoJSON plugin.
API
planetaryjs.plugins.land([config])
Valid keys for config are:
fill: thefillStyleto use for the context; defaults to"white"stroke: thestrokeStyleto use for the context; defaults to no value, resulting in no stroke around the landmasseslineWidththelineWidthto set on the context; only effective ifstrokeis set. Defaults to no value, resulting in no change to the context'slineWidth
JavaScript
planetaryjs.plugins.land({
fill: '#339966', stroke: '#000000'
});
See also: