How to disable Google Maps realign north button

Viewed 3681

Hi I would like to know how to disable the north align compass button in the top left corner of Google Maps. I linked an image to show what I am talking about. I have found out how to disable other UI components but I find nothing about disabling this button. I am using android studio.

enter image description here

Thanks!

2 Answers

TO Hide compass Just add this line where you are loading google map

        mMap.getUiSettings().setCompassEnabled(false);
Related