Android Question Problem with the size of the markers

schimanski

Well-Known Member
Licensed User
Longtime User
Hello!

I have all time problems with the sizes of the markers in the map. They have different sizes on different screen solutions. Sometimes, the size is fine, but on other devices, they are to big or to small... My icons has normally a size of 30x30 and 50x50 pixels. The following code I used to add the markers to my map:

B4X:
Dim IconMarker As BitmapDrawable
IconMarker.Initialize(LoadBitmap(File.DirAssets, "icon_marker.png"))
..
..
Marker1.Initialize("Test", "Test_Marker", MapCenter.Latitude, MapCenter.Longitude, IconMarker)
Markerliste.Add(Marker1)
MarkersBalloonOverlay1.AddMarkers(Markerliste)
..

Is there a way to set the size in dependence of the screen solution?

Thanks for help...
 

schimanski

Well-Known Member
Licensed User
Longtime User
Dim IconMarker As BitmapDrawable
IconMarker.Initialize(LoadBitmap(File.DirAssets, "icon_marker.png"))

???
is it that, what you mean?
 
Upvote 0
Top