Android Question Marker in MapView

AlpVir

Well-Known Member
Licensed User
Longtime User
I use the OSMDROID library and MapView.
I found that the markers are very very large, even using a png file of 16x19 pixels.

B4X:
Dim Icon As BitmapDrawable
Icon.Initialize (LoadBitmap (File.DirAssets, "marker.png"))

Is there a way to reduce this ?
Thanks in advance
 

eurojam

Well-Known Member
Licensed User
Longtime User
you can load them as Android Resources:
B4X:
Icon = AndroidResources1.GetApplicationDrawable("icon1")
put the file icon1.png into the folder: \Objects\res\drawable-nodpi and make it read only
 
Upvote 0
Top