Android Question My Location Button Re-Positioning

Daniel Corpus

New Member
Hello,

I hope I am not duplicating a thread, but I was wondering if there is a way to edit/move the My Location Button in googlemaps. As you know it is in located by default in the top and right of the screen but I would like to re-position it.

Thanks and Regards.
Daniel Corpus
 

Daniel Corpus

New Member
you can use googlemapextras to achieve this:
B4X:
     Dim GoogleMapsExtras1 As GoogleMapsExtras
     Dim w As Int = MapPanel.width - 60dip
     GoogleMapsExtras1.SetPadding(gmap,0,0,w,0)
this will position the mylocation button in the upper left corner.
read https://developers.google.com/maps/documentation/android-api/map#map_padding for more information
you can use googlemapextras to achieve this:
B4X:
     Dim GoogleMapsExtras1 As GoogleMapsExtras
     Dim w As Int = MapPanel.width - 60dip
     GoogleMapsExtras1.SetPadding(gmap,0,0,w,0)
this will position the mylocation button in the upper left corner.
read https://developers.google.com/maps/documentation/android-api/map#map_padding for more information
Thanks!!!
 
Upvote 0
Top