land border shadow option

This commit is contained in:
darul 2014-01-14 20:42:10 +01:00
parent c8c4bfa4bd
commit 9557b9a61f

View File

@ -46,6 +46,12 @@
planet.onDraw(function() {
planet.withSavedContext(function(context) {
context.beginPath();
// nice land shadow
if (config.shadow) {
context.shadowOffsetX = config.shadow.shadowOffsetX || 1;
context.shadowOffsetY = config.shadow.shadowOffsetY || 1;
context.shadowColor = config.shadow.shadowColor || 'white';
}
planet.path.context(context)(land);
if (config.fill !== false) {