D Daniel Corpus New Member Feb 3, 2016 #1 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
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
eurojam Well-Known Member Licensed User Longtime User Feb 4, 2016 #2 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 Upvote 0
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
D Daniel Corpus New Member Feb 6, 2016 #3 eurojam said: 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 Click to expand... eurojam said: 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 Click to expand... Thanks!!! Upvote 0
eurojam said: 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 Click to expand... eurojam said: 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 Click to expand... Thanks!!!