If you pass an empty layout to spritezero.generateImage, an error is thrown (instead of passed to the callback function) when an empty array is passed to mapnik.blend.
spritezero.generateImage({
width:0,
height:0,
items:[]
}, function(err) {
if (err) console.log('got an error!');
else console.log('at least we made it');
});
If you pass an empty layout to
spritezero.generateImage
, an error is thrown (instead of passed to the callback function) when an empty array is passed tomapnik.blend
.I ticketed this upstream in https://github.com/mapnik/node-mapnik/issues/515, but thought it would be worth being aware of here as well.