Android Question OSMdroid: map not showing

udg

Expert
Licensed User
Hi all,
today I launched a very old test project of mine based on OSMdroid lib by @warwound but it didn't show any map.
I added runtime permissions and gps checking (and the Starter module too), but nothing.
I tried different tile sources (just in case) but still no map displayed. I can see my POIs and have different POIs marked with different icons but no map backgroud.

I saw a few older threads about this problem but any was pointing toward rp which I have set.

B4A 9.00,, Android 4.4.4 device, OSMdroid 4.1

Any suggestion about what else to check? TIA
 

udg

Expert
Licensed User
Update: I tried on an Android 7 device..same result.
Using a contribution by a community member I was able to show a map obtained attaching a .map file in DirAssets, but that's not the functionality I was used to.
So, again, what else can I check in order to display a Mapnik map starting from a given center point's coordinates?
 
Upvote 0

DonManfred

Expert
Licensed User
I opt-in here. I am playing with a new wrap for OSMDROID (based on V6).
I can not get a Map visible. Scalebar, Copyrightoverlay, Compass, Minimap and mylocation overlay is working. But i do not get any Map shown using Mapnik Tilesource as of now.

WhatsApp Image 2019-12-15 at 10.38.23.jpeg

I´m interested in any progress

Edit to add: I am using it on my Android 9 Device. Maybe this is the issue...
I´ll do a test with a older Device....
 
Last edited:
Upvote 0

udg

Expert
Licensed User
Hi Manfred,
at least I'm not alone..ehehe
I tried a few other sources but the result is always no map showing. Here's the code I used to list and select other sources (if you want to try on your porting)
B4X:
'Let's list available factory sources
Dim tsf As OSMDroid_TileSourceFactory
Dim abc() As OSMDroid_TileSource = tsf.GetTileSources
Log(abc.Length)
For i = 0 To abc.Length-1
   Log(abc(i).Name)
Next
'Let's try Mapnik
Dim tsource As OSMDroid_TileSource = tsf.GetTileSource("Mapnik")
MapView1.SetTileSource(tsource)

I am playing with a new wrap for OSMDROID (based on V6).
Great news :)
 
Upvote 0

DonManfred

Expert
Licensed User
Last edited:
Upvote 0

DKHDKH

Member
Licensed User
I also have the same problem. But I don't understand how to put the above solution in my program. I have put the line in Activity_Create but then I get an error message.
Can someone explain to me where I should put that rule?
Thanks in advance.
 
Upvote 0
Top