Reputation: 85
I'm developing a website that display a map using OpenLayers3 API. I know that most of requests will refer to a specific location so I'm wondering if it's possible to save server-side the Tiles of that region, in order to reduce calls to OpenStreetMap that sometimes is slow. Thanks in advance!
Upvotes: 0
Views: 413
Reputation: 2371
Yes, you can. There are several solutions
You can try dedicated software called more or less "map tiles proxy"
You can reuse your existing web server
You will tweak it for the intent of caching map tiles (Nginx recipe, did not found one out of the box for Apache)
You can use what we call "reverse proxy" like Varnish. See a recipe for this.
Upvotes: 4