Android Question GoogleMaps Pointer

Fulvio75

Well-Known Member
Licensed User
Hi all, how can you change the location pointer of Googlemaps? I've added a custom one by adding and removing a Marker in the position I'm in, but the original pointer (blue dot) remains and I would like to remove it.

B4X:
Public GMPointer as Marker 'Globals'

'***Personal pointer
If GMPointer.IsInitialized = True Then GMPointer.Remove
GMPointer = GoogleMap.AddMarker3(CameraPosition.Target.Latitude,CameraPosition.Target.Longitude,"",LoadBitmap(File.DirAssets,"GM_Pointer.png"))
 
Simply you can use,


Code:
Public GMPointer as Marker 'Globals'
Public OldPoint as Marker 'Globals'

'***Personal pointer
If GMPointer.IsInitialized = True Then OldPoint.Remove
GMPointer = GoogleMap.AddMarker3(CameraPosition.Target.Latitude,CameraPosition.Target.Longitude,"",LoadBitmap(File.DirAssets,"GM_Pointer.png"))
OldPoint = GMPointer
 
Upvote 0

Fulvio75

Well-Known Member
Licensed User
Simply you can use,


Code:
Public GMPointer as Marker 'Globals'
Public OldPoint as Marker 'Globals'

'***Personal pointer
If GMPointer.IsInitialized = True Then OldPoint.Remove
GMPointer = GoogleMap.AddMarker3(CameraPosition.Target.Latitude,CameraPosition.Target.Longitude,"",LoadBitmap(File.DirAssets,"GM_Pointer.png"))
OldPoint = GMPointer
My intention is to remove the standard dot.
My code working.
 
Upvote 0

Similar Threads

Top