staticmap icon indicating copy to clipboard operation
staticmap copied to clipboard

Feature request: Tile caching

Open Lumiukko opened this issue 4 years ago • 3 comments

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 [?]).

Lumiukko avatar Jun 16 '21 16:06 Lumiukko

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

1doshi avatar Jan 24 '23 11:01 1doshi

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?

1doshi avatar Jan 24 '23 11:01 1doshi

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?).

maratumba avatar Jan 29 '24 22:01 maratumba