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

Overloaded IconMaker method #18

Open martinsallandm opened 5 years ago

martinsallandm commented 5 years ago

if you want to put 1000's images in the map. PIL will complain about too many open files. With this change. You create one copy of the image object and pass the same reference across the instances of IconMaker.