Code example for GoogleMap

Methods: clear

0
    /** Called when the Clear button is clicked. */ 
    public void onClearMap(View view) {
        if (!checkReady()) { 
            return; 
        } 
        mMap.clear();
    } 
 
    /** Called when the Reset button is clicked. */ 
    public void onResetMap(View view) {
        if (!checkReady()) { 
            return; 
        } 
        // Clear the map because we don't want duplicates of the markers. 
        mMap.clear();
        addMarkersToMap(); 
    } 
 
    // 
    // Marker related listeners. 
    //