Code example for GoogleMapOptions

Methods: camera

0
    public void onSaveInstanceState(Bundle outState)
    { 
        if (this.mMap != null)
        { 
            // Store the current map specific look 
            GoogleMapOptions mapOptions = new GoogleMapOptions();
            mapOptions.camera(this.mMap.getCameraPosition());
            outState.putParcelable(SAVE_MAP_OPTIONS, mapOptions);
        } 
         
        super.onSaveInstanceState(outState);
    } 
 
 
    /* (non-Javadoc) 
     * @see android.support.v4.app.Fragment#onCreateOptionsMenu(android.view.Menu, android.view.MenuInflater) 
     */ 
    @Override 
    public void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater)
    { 
        inflater.inflate(R.menu.menu_map, menu);