criticalmaps / criticalmaps-android

🤖 Critical Maps Android App
http://criticalmaps.net
Apache License 2.0
136 stars 27 forks source link

OSM map not loaded on start #211

Closed Wikinaut closed 6 years ago

Wikinaut commented 6 years ago

With the recent versions I noticed that the map is not loaded when the app is started, when GPS is switched off.

I only see a blue map with my own position icon, zoom-in or zoom-out: no function.

cbalster commented 6 years ago

I will take a look at this today. I noticed some quirks with the osmdroid cache while upgrading the targetSdk - maybe this is related.

cbalster commented 6 years ago

Can you please tell me if you denied the storage permission for the app? Even though this should be unrelated to gps settings.

Wikinaut commented 6 years ago

@cbalster All three permission are given (storage, location and camera).

cbalster commented 6 years ago

I finally found some time to work on the app. I can't reproduce your problem, but I made some changes that also concern osmdroid's cache. These probably also solved your issue. Can I supply you with a test version in some way?

Wikinaut commented 6 years ago

@cbalster just make a new branch here which I can then fetch into my repo.

cbalster commented 6 years ago

Sure, I pushed my wip branch here: https://github.com/cbalster/criticalmaps-android/tree/osmdroid_test

Wikinaut commented 6 years ago

Ich habe gerade Deine Version gebaut und geladen --> "blaues Wasser" beim Start (GPS ist ausgeschaltet), weil Koordinaten 0,0 sind? Vielleicht kann man für diesen Fall das Fahrradsymbol (so wie das dann-rote GPS-Symbol) auch inaktiv darstellen (z.B. mit einem roten X übermalen?)

Vielleicht.... ist mein ursprünglicher Fehlerreport oben auch ein "falscher" Fehler gewesen und ich hätte nur massiv herauszoomen müssen?

Wikinaut commented 6 years ago

I am closing this issue now. May be my mistake (not having zoomed-out enough to see the map).

cbalster commented 6 years ago

Ganz ohne location startet die app eigentlich ohne das Icon und komplett herausgezoomt. Wenn du trotz deaktiviertem GPS bei 0,0 und reingezoomt bist und das Icon angezeigt wird, dann kommt die Info von der lastKnownLocation. Wenn die "alt" ist, könnte man das zB über ein ausgegrautes Icon kenntlich machen. Was mich verwundert ist, dass die location 0,0 ist - ist neben deaktiviertem GPS bei dir XPrivacy oder so installiert, dass diesen Wert als default liefern könnte?

Wikinaut commented 6 years ago

Habe ich nicht installiert.