Hi,
have searched through the tutorials on this but can't find anything that solves this.
I'm running a MapView, using the overlay marker images as shown in the excellent tutorial (OSMDroid - MapView for B4A tutorial), however my problem is that on my device (Samsung Note II), the overlay image marker is always rendered too large (e.g. not 48 pixels wide etc).
The relevant code is :-
Dim bm_user As BitmapDrawable
bm_user.Initialize(LoadBitmap(File.DirAssets, "mapuser.png"))
Dim user_marker As Marker
user_marker.Initialize("My Location", "some location",lat,lon, bm_user)
Note that this is working fine, its just drawing the image too big.
I've tried a number of solutions including:-
- loading a scaled bitmap image into it
- resizing the bitmap after creation
- trying different sized images
Its always too large however, and the same size. can anyone tell me what to do to make it render properly and shrink it to its natural size?
Thanks
have searched through the tutorials on this but can't find anything that solves this.
I'm running a MapView, using the overlay marker images as shown in the excellent tutorial (OSMDroid - MapView for B4A tutorial), however my problem is that on my device (Samsung Note II), the overlay image marker is always rendered too large (e.g. not 48 pixels wide etc).
The relevant code is :-
Dim bm_user As BitmapDrawable
bm_user.Initialize(LoadBitmap(File.DirAssets, "mapuser.png"))
Dim user_marker As Marker
user_marker.Initialize("My Location", "some location",lat,lon, bm_user)
Note that this is working fine, its just drawing the image too big.
I've tried a number of solutions including:-
- loading a scaled bitmap image into it
- resizing the bitmap after creation
- trying different sized images
Its always too large however, and the same size. can anyone tell me what to do to make it render properly and shrink it to its natural size?
Thanks