Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps v3 - Map tile caching on client?

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!

like image 331
David Pfeffer Avatar asked Nov 16 '11 12:11

David Pfeffer


Video Answer


1 Answers

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

enter image description here

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

like image 86
Manuel van Rijn Avatar answered Oct 11 '22 14:10

Manuel van Rijn