1000 B
1000 B
Land Plugin
The land plugin renders Earth's landmasses. It uses TopoJSON data published to planet.plugins.topojson.world by the TopoJSON plugin. It uses the feature at objects.land in the TopoJSON object.
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: