komoot / staticmap

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

Feature request: Tile caching #28

Open Lumiukko opened 3 years ago

Lumiukko commented 3 years ago

First of all, great library! Intuitive and simple - loving it.

One thing i noticed is that tiles are being loaded when calling the render() method - which makes sense, as we can add elements on the map, which may change the bounding box.

However, the retrieved tiles could be stored in some local user directory for caching, so not every render requests a tile from an online source, which would reduce the server load and the number of misses (i.e. request failed [?]).

1doshi commented 1 year ago

Hello! Do u understand how save in cache xyz tiles?

1doshi commented 1 year ago

First of all, great library! Intuitive and simple - loving it.

One thing i noticed is that tiles are being loaded when calling the render() method - which makes sense, as we can add elements on the map, which may change the bounding box.

However, the retrieved tiles could be stored in some local user directory for caching, so not every render requests a tile from an online source, which would reduce the server load and the number of misses (i.e. request failed [?]).

or this lib working only with internet connection?

maratumba commented 7 months ago

I think he does know what he is talking about and has a valid question, do you understand that you need to be nicer for someone who doesn't seem to know basics of how requests work?

Anyway @Lumiukko, I have the same issue and I will try something with the requests-cache package (patching perhaps?).