Code example for GoogleMap

Methods: setTrafficEnabled

0
     */ 
    public void onTrafficToggled(View view) {
        if (!checkReady()) { 
            return; 
        } 
        mMap.setTrafficEnabled(((CheckBox) view).isChecked());
    } 
 
    /** 
     * Called when the MyLocation checkbox is clicked. 
     */ 
    public void onMyLocationToggled(View view) {
        if (!checkReady()) { 
            return; 
        } 
        mMap.setMyLocationEnabled(((CheckBox) view).isChecked());
    } 
 
    @Override 
    public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
        if (!checkReady()) {