I’m not sure what you mean by the compass? In one of my apps that uses maps, the assumed default is that North is the top of the map. If you rotate the map using a two finger twisting action a black compass automatically shows itself. This was on iOS. I didn’t try it on Android. There are no API calls that let you show or hide the map scale.
Rob