Map tiles not showing in built app


installing simple mapping app in device after building via phonegap build, works map tiles don't show. 

 

the app at:  github - satyam/seguimiento: seguimiento de la posición de un table (phonegap app)

 

before building tested application in browser using `phonegap serve` , works fine, tiles all.

 

once build , installed in android, works, except missing map tiles.

 

i added event listener catch clicks on map elements via mapping app , respond nicely.  location marker shows expected zoom controls tiles never show.    enclosed whole mapping part in try-catch block show possible errors might otherwise pass unnoticed, , nothing happens. latitude , longitude displayed fine , values correct, geolocation part good.

 

the app uses leaflet access openstreetmap tiles. i've seen plenty of questions how access map tiles locally seems option , several articles mention using plain leaflet remote tiles quite normal thing, can't seem right. 

 

i added   `<access origin="*" subdomains="true" /> ` config file comments in 1 of articles, no visible change.

 

i shortened list of plugins ones use or intend to.  perhaps have gone far? 

 

seguimiento/config.xml @ master · satyam/seguimiento · github

 

thanks in advance help

 

satyam

...after building via phonegap build

 

your directory structure not pgb expects.

instead: move config.xml /www, adjust paths icons/splashes , send contents of /www pgb.

 

you using compound qualifiers in density attribute, not work. use qualifier attribute. see pgb docs, icons , splash section.

density="land-ldpi" should qualifier="land-ldpi"

 

you missing whitelist plugin, , allow-navigation rule map tiles.

see cordova-plugin-whitelist



More discussions in PhoneGap Build


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop