StephanGeorg / staticmaps

A Node.js library for creating map images with markers, polylines, polygons and text.
MIT License
171 stars 50 forks source link

Promise from render function never called #52

Closed JulienSmartEasHome closed 3 years ago

JulienSmartEasHome commented 3 years ago

Hello all !

I tried from yesterday to implement staticMaps with default examples, without success.

map.render(center, zoom) .then(() => map.image.save('center.png'))
.then(() => console.log('File saved!')) .catch(function(err) { console.log(err); });

I have no error catched, et pormise for save image is not called.

Version of node is v10.23.0 and sharp is 0.27.1

Can you help me please ?

Thnaks you very much Julien

StephanGeorg commented 3 years ago

Could you please clone the repo and run the tests:

npm test

The image output will be in test/out.