Code example for UiSettings

Methods: setCompassEnabled

0
			return; 
		} 
		// Enables/disables the compass (icon in the top left that indicates the 
		// orientation of the 
		// map). 
		mUiSettings.setCompassEnabled(((CheckBox) v).isChecked());
	} 
 
	public void setMyLocationButtonEnabled(View v) {
		if (!checkReady()) { 
			return; 
		} 
		// Enables/disables the my location button (this DOES NOT enable/disable 
		// the my location 
		// dot/chevron on the map). The my location button will never appear if 
		// the my location 
		// layer is not enabled. 
		mUiSettings.setMyLocationButtonEnabled(((CheckBox) v).isChecked());
	} 
 
	public void setMyLocationLayerEnabled(View v) {