javascript - Is it possible to save Google/Bing Map in browser's cache? -
my current website project needs enable users view offline google/bing maps. i'm using google map needs connected internet each time open webpage can see map. in offline mode, you'll see nothing on map. reason guess follows:
<script src="http://maps.google.com/maps/api/js?sensor=false"></script> because each time webpage initializes, browser tries visit above library link. know android app can store portion of google map local file system, , guess ios app able so. however, when comes website, possible store portion of google/bing map in browser's cache?
you're unlikely able achieve google or bing maps. major issue being when user zooms in/out, different images loaded in dynamically.
i'd therefore backtrack , 'why need use google maps?':
a) because want indicate location of on map
use image instead
b) i want allow user zoom in on map , interact it
there number of mapping solutions allow use own svg maps (or maps wikipedia) e.g. http://jqvmap.com/
you can host of assets , can work offline via app cache/manifest.
Comments
Post a Comment