Compass position in the upper right corner of google map v2 in android

Someone please help me, I want to set the compass button in the upper right corner of the Google map. I spent a lot of time, but I did not find an answer that could help me. How can I achieve this using google maps? Any suggestions?

+4
source share
1 answer

The default Compassis in the left corner of the Google V2 map. You just installed .setCompassEnabled(true).

myMap.getUiSettings().setCompassEnabled(true);

and the compass icon appears only if you rotate the map so as not to align it to the north.

+2
source

Source: https://habr.com/ru/post/1548304/


All Articles