I have a requirement where the customer has explicitly asked for offline support for the map. The rest of the application works well offline, but I am not sure how to get this done using Google or OpenLayers.
I have gone through here and I couldn't find any answer to what I was looking for. Please do note that I am only using
phonegap.js and nothing else. I have worked with Google Maps as well as OpenLayers and I'm inclined to using these as I feel its much light weight and community support is awesome.
Q. Has anyone implemented or come across offline usage of Google Maps or OpenLayers. Other reliable map solutions are also welcome, but just need to be fast and mobile friendly.
What I have done:
I have downloaded the entire source repo from github (OpenLayers) and included in my application. Although it takes hell of a time loading in browser, the application when installed had no performance issue. The issue was even though I included all files in my app, OpenLayers still fetches the map images (tiles) from another server and it is like dynamic (I had asked related here: OpenLayers maps issue with SSL).
http://c.tile.openstreetmap.org/14/8745/5622.png http://c.tile.openstreetmap.org/14/8745/5625.png http://b.tile.openstreetmap.org/14/8745/5623.png
and so on.
I have not gone with Google Maps as everything I got is direct API call to Google server.
Any good leads will be greatly appreciated.