admin管理员组文章数量:1293902
I used Mapbox on a project and now I want to improve the performance of it. Is it possible to cache the Mapbox Tile images?
When I use my Mapbox map, I see request urls that look like this:
/{mapId}/13/4381/2564.png
I am wondering if someone could help me to figure out how to set up my own Tile caching, so I can push it out to my customers from my own server.
I used Mapbox on a project and now I want to improve the performance of it. Is it possible to cache the Mapbox Tile images?
When I use my Mapbox map, I see request urls that look like this:
http://b.tiles.mapbox./v3/{mapId}/13/4381/2564.png
I am wondering if someone could help me to figure out how to set up my own Tile caching, so I can push it out to my customers from my own server.
Share Improve this question edited May 17, 2019 at 18:18 allicarn 2,9192 gold badges29 silver badges47 bronze badges asked Sep 5, 2013 at 9:48 ParisNakitaKejserParisNakitaKejser 14.9k9 gold badges49 silver badges69 bronze badges3 Answers
Reset to default 4I was hoping this wasn't against mapbox's TOS too... however, it appears that it is. End-users can cache tiles, but aren't allowed to serve them to other users. Down further in their Terms of Service it gives more details--I bolded the parts I thought most relevant:
"Maps hosted on Mapbox may be cached on end-user devices (laptops, smartphones, tablets) for offline use, however, each device must populate its cache using direct requests to Mapbox and content from a cache may only be consumed by a single end-user. Further redistribution from a cache is prohibited as is proxying and any other redistribution of maps served from Mapbox. Scraping or any mass download by a single user for purposes other than offline caching on end-user devices is prohibited."
This is Not against mapbox's TOS.
Offline caching Devices — phones, tablets, puters — may cache an unlimited amount of map imagery for offline use or to improve performance. You may not proxy or redistribute cached content.
This is against the MapBox Terms of Service and would result in your account being terminated.
本文标签: javascriptCache mapbox Tile imagesStack Overflow
版权声明:本文标题:javascript - Cache mapbox Tile images - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741584506a2386764.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论