It's possible to change position the My Location buttom Google Maps?


#1

Hi,

It’s possible to change position the My Location button Google Maps? With Ionic Native…

I need it be on the right bottom :disappointed:

Regards!


#2

What Ionic Native plugin are you using exactly? Please provide a link.


#3

@Sujan12


#4

From a bit of googling I would say this is not possible.

Ionic Native Google Maps uses https://github.com/mapsplugin/cordova-plugin-googlemaps
This is a thin wrapper around the Android and iOS native Google Maps SDKs.

Here is some information about the controls on the map for Android:

The My Location button appears in the top right corner of the screen only when the My Location layer is enabled.

https://developers.google.com/maps/documentation/android-api/controls?hl=en#my_location_button

For the Javascript SDK positioning the buttons differently is explicitly mentioned:
https://developers.google.com/maps/documentation/javascript/examples/control-positioning?hl=en