谷歌地图v3 - 地图瓷砖缓存客户端? [英] Google Maps v3 - Map tile caching on client?

查看:92
本文介绍了谷歌地图v3 - 地图瓷砖缓存客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Google Maps JS API v3用于项目。有没有办法让地图缓存客户端机器上的磁贴,以便刷新浏览器时,磁贴不必再次下载?

多我的客户是在蜂窝连接的地方,redownloading地图需要相当多的时间。



谢谢!

解决方案



解决方案

https://i.stack.imgur.com/5MfgY.pngalt =在这里输入图片描述>



如果用户无法缓存图片,这可能是因为他们禁用了缓存


I'm using Google Maps JS API v3 for a project. Is there a way to ask the map to cache tiles on the client's machine so that when they refresh the browser, the tiles don't have to all download again?

Many of my clients are on cellular connections where redownloading the map takes a considerable amount of time.

Thanks!

解决方案

By default google maps return's cached images (you can see this in the network tab of the console).

If you user's having trouble caching the images, it's probably because they disabled the cache

这篇关于谷歌地图v3 - 地图瓷砖缓存客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆