komoot / staticmap

A small, python-based library for creating map images with lines, markers and polygons.
https://www.komoot.com
Other
290 stars 65 forks source link

Fix bug when creating many IconMarker object from the same source image #27

Closed mitbal closed 1 year ago

mitbal commented 3 years ago

The solution is to set the path on constructor and open it only when render function is called, and closed the file descriptor afterwards.