简体   繁体   中英

Cache OpenLayers3 Tiles server side

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!

Yes, you can. There are several solutions

  1. You can try dedicated software called more or less "map tiles proxy"

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

  3. You can use what we call "reverse proxy" like Varnish. See a recipe for this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM