0

I want to set zoom controls at top right corner of my GoogleMap which is from SupportMapFragment.

I have found solutions to get ZoomControls from MapView and add it to required position but the problem is I'm not using MapView.

map.setPadding(leftPadding, topPadding, rightPadding, bottomPadding); doesn't work for me either as I've other views on my GoogleMap which I don't want to be calculated everytime I zoom-in/out when I use map.setPadding().

I've gone through documentations but couldn't find anything useful to this perspective.

Is there any way to get ZoomControls from GoogleMap or SupportMapFragment ?

Mann
  • 560
  • 3
  • 13
  • Please check SO post - [Android Maps Library V2 zoom controls custom position](http://stackoverflow.com/questions/14071230/android-maps-library-v2-zoom-controls-custom-position). – Teyam Apr 21 '16 at 03:43
  • @Teyam Please check my question. – Mann Apr 21 '16 at 04:48

1 Answers1

0

The only solution which comes to my mind is to remove GoogleMap's ZoomControls and add your own zoom controls anywhere you want. In that case you'll have to provide your own + and - controls.

Marian Paździoch
  • 8,813
  • 10
  • 58
  • 103