cordova - best map system for phonegap web app -


i have phonegap application uses google maps api display map markers, displays small resume of each attraction of city.

i use cache application , localstorage, 1st preload images, 2nd display preview when user click on marker, , in case network slow or shut down.

but if want app used offline. read google maps tiles can't used offline. if fact, offline app appears empty canvas instead of google map

and js loading of google maps cache on manifest, app down, beacause of missing variable 'google' asked js scripts present in manifest:

[error] referenceerror: can't find variable: google     load (map.js, line 472)     geolocation (geolocation.js, line 38) 

so scripts containing variable, stop.

what solution ? ok me if google map not appear services not required. in fact, in android offline, have no problem, google map tiles not displaying, application still work offline.

i saw multiples soluton 1 acceptable ?

openstreemap + leafleft ? seems good, isn't complicated relative google map ? looks need use sqlite database storing openstreetmap , i'll have donwload tiles before rendering them...

or there map, bing or else, stop rendering new tiles, don't stop javascropts containing map reference.

thanks.

would consider plugin?

https://github.com/wf9a5m75/phonegap-googlemaps-plugin

the above plugin uses google maps android api v2 , google maps sdk ios. provides cache map.

this plugin not cover features of google maps javascript api v3, of basic features available, such marker, polyline. , faster google maps javascript api v3.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -