planetary.js/site/public/documentation/builtin_land.md
2013-12-25 23:25:35 -08:00

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: the fillStyle to use for the context; defaults to "white"
  • stroke: the strokeStyle to use for the context; defaults to no value, resulting in no stroke around the landmasses
  • lineWidth the lineWidth to set on the context; only effective if stroke is set. Defaults to no value, resulting in no change to the context's lineWidth
JavaScript
planetaryjs.plugins.land({
  fill: '#339966', stroke: '#000000'
});

See also: