Vijay Kumbhar Vijay Kumbhar - 6 days ago 6
jQuery Question

HTML5 offline google map access

We are developing a HTML5 application which has a Google map to change the location of search.
Now this app has an offline version too. Is there any way i can cache the Google map & when the application is offline, it will show the offline version?

And how could we enable the user to change the location again?

Answer

There is not currently any caching mechanism in place for google maps, in fact the map tiles that are downloaded explicitly have the nocache header specified (interestingly, there is work being done on caching for the Android version of maps, but it is still experimental). In order to leverage maps offline, you would likely need to roll your own caching scheme.

With the explosion of mobile devices, and the probability of being disconnected at some point while using a mobile device, it wouldn't surprise me if Google did add offline browsing capability to maps at some point in the future though (maybe v4?).

UPDATE:

There is a feature request in the public issue tracker:

https://code.google.com/p/gmaps-api-issues/issues/detail?id=8914

Please star this feature request to express your interest and receive further updates from Google.

Comments