I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
Current behavior:
In my iPhone X the location button is just bearly not clickable (we have stretched the app over the full screen) and the button is rendered in the unclickable area of the iPhone screen.
Is there a way i can move the button to a better/different position?
thanks in advance
Hi @TimothyFehr, I use the padding option of the map to do this in Android. I do not know if this works in IOS. The map padding pushes in the Google logo at the bottom, the compass, and the myLocationButton. I use this to push the compass and button down from the top of the screen.
map.setOptions({
'preferences' : {
'padding' : {
'left':0,
'top':25,
'bottom':0,
'right':0
}
}
});
The my location button comes from native side, not this plugin. Thus, we can't move it.
Well, there is also map.setPadding() method.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/Map/setPadding/README.md
I guess @TimothyFehr wants to just move the mylocation button to where he wants.
In that case, you need to create a button using html element.
This is the best way.
ping @TimothyFehr
Most helpful comment
I guess @TimothyFehr wants to just move the mylocation button to where he wants.
In that case, you need to create a button using html element.
This is the best way.