Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

compass position on Top right corner on google map v2 in android

Tags:

android

Anyone please help me, I want to set compass button on top right corner on the Google map. I have wasted my lot of time but i didn't find any answer that can help me. How can I achieve this with the Google maps ? Any suggestions?

like image 302
bharat7777 Avatar asked Oct 20 '22 05:10

bharat7777


1 Answers

By default Compass is coming at left side corner in Google maps V2. You just set.setCompassEnabled(true).

myMap.getUiSettings().setCompassEnabled(true);

and also compass icon appear only if you rotate the map to not align to north.

like image 65
M D Avatar answered Oct 23 '22 02:10

M D