mapbox / spritezero

small opinionated sprites
Other
173 stars 63 forks source link

mapnik.blend throws errors #10

Closed rclark closed 4 years ago

rclark commented 9 years ago

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.

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.

spritezero.generateImage({
    width:0,
    height:0,
    items:[]
}, function(err) {
    if (err) console.log('got an error!');
    else console.log('at least we made it');
});
springmeyer commented 4 years ago

Closing per https://github.com/mapnik/node-mapnik/issues/515