AlpVir Well-Known Member Licensed User Longtime User May 4, 2017 #1 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
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 May 4, 2017 #2 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
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
AlpVir Well-Known Member Licensed User Longtime User May 4, 2017 #3 Thank you. Just what I wanted ! Upvote 0