Hi All,
I am having trouble using an icon [Non default] for a marker using GoogleMapExtras. The code I am on at the moment [below] doesn't work. I have tried several arrangements without sucess.
From GoogleMapExtras library and links to Google it appears I need to use BitMapDescriptor that needs to use BitMapDescriptorFactory but I can't find anything that shows how this "chain of needs" fits together.
When I try to run this code I get the message containing instructions:
((com.google.android.gms.maps.model.BitmapDescriptor)
I think if I knew what this meant I wouldn't have a problem.
Any help much appreciated.
Regards Roger
I am having trouble using an icon [Non default] for a marker using GoogleMapExtras. The code I am on at the moment [below] doesn't work. I have tried several arrangements without sucess.
From GoogleMapExtras library and links to Google it appears I need to use BitMapDescriptor that needs to use BitMapDescriptorFactory but I can't find anything that shows how this "chain of needs" fits together.
B4X:
Dim MarkerOptions1 As MarkerOptions
MarkerOptions1.Initialize
Dim BTSMarker As Marker
MarkerOptions1.Draggable(True)
MarkerOptions1.Position2(BTSLat, BTSLng).Snippet("pkt").Title("BASE").Icon(LoadBitmap(File.DirAssets,"BTS.png"))
BTSMarker=GoogleMapsExtras1.AddMarker(gmap, MarkerOptions1)
When I try to run this code I get the message containing instructions:
((com.google.android.gms.maps.model.BitmapDescriptor)
I think if I knew what this meant I wouldn't have a problem.
Any help much appreciated.
Regards Roger