Android Question how to add a marker in OSMDroid 6

nkala mpika

New Member
Hello I use OSMDROID6 to display an open street map the problem is that this code allowing to add a marker does not work, I do not see a marker

B4X:
 Dim mMarker As Marker
 mMarker.Initialize(MapView1)
 mMarker.SetPosition2(-4.2515,15.2444)
 mMarker.SetIcon2(LoadBitmap(File.DirAssets,"marker.png"))
 mMarker.SetId(name_station)
 mMarker.SetTitle(name_station)
 mMarker.SetDraggable(True)
 
Top