3

I have a mobile application android and ios that uses the Google Map. However, I have views that hide the Google logo at the bottom left. I would like to move the logo up but I did not find how to do it! I searched in the Google documentation and also here on Stackoverflow but I did not find! Please, can you tell me if you can move the Google map logo on android (java) and ios (swift)? Thank you in advance.

piet.t
  • 11,718
  • 21
  • 43
  • 52
poulay1253
  • 129
  • 2
  • 9

2 Answers2

4

You can move the zoom controls, compass, copyright notices and Google logo using setPadding for both Android and iOS.

For Android : GoogleMap.setPadding()

For iOs : GMSMapView.padding

Nikunj
  • 3,937
  • 19
  • 33
  • Yes i know but i juste want to move the google logo (in swift) because Archana give me the answer for android : GoogleMap.setPadding() – poulay1253 Feb 23 '18 at 10:35
  • you can try using GMSMapView.padding ..... https://developers.google.com/maps/documentation/ios-sdk/reference/interface_g_m_s_map_view#a66668a48bbc864faee1e8ba71e4c9bec – Nikunj Feb 23 '18 at 10:53
  • I think that you should remove you answer, or at least, update it with the proper content. The question is not about removing or altering the logo, but change its position. This thing is possible by using the `setPadding` as you already know since you posted the above comment. – Iulian Popescu Feb 23 '18 at 14:24
  • @Iulian Popescu : updated the answer. – Nikunj Feb 24 '18 at 05:23
4

Thank you for your help and thanks to Archana who get the answer !!

For android :

googlemap.setpadding()

For swift :

let mapInsets = UIEdgeInsets(top: 100.0, left: 0.0, bottom: 0.0, right: 300.0) mapView.padding = mapInsets
poulay1253
  • 129
  • 2
  • 9