Best code examples for Android GoogleMapOptions class (com.google.android.gms.maps.GoogleMapOptions)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android GoogleMapOptions class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android GoogleMapOptions examples from Open Source projects
This code example shows how to use the following methods: compassEnabled, mapType, rotateGesturesEnabled, tiltGesturesEnabled
	 
	// method for creating and returing a google map options object 
	// for passing into the 'setFragmentOptions' method 
	public static GoogleMapOptions createOptions(boolean hasCompass, boolean canRotate, boolean canTilt, int mapType)
	{  
		GoogleMapOptions options = new GoogleMapOptions();
		 
		// set the map options parameters from the passed in arguments 
			options.compassEnabled(hasCompass);
			options.rotateGesturesEnabled(canRotate);
			options.tiltGesturesEnabled(canTilt);
			options.mapType(mapType);
			 
		return options;
	} 
	 
	// method for setting the map fragment initial options 
	public static MapFragment setFragmentOptions(GoogleMapOptions options)
	{ 
		// creates a new map fragment with the passed in google map options object 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: zOrderOnTop
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		setHasOptionsMenu(true); 
		GoogleMapOptions op = new GoogleMapOptions();
		op.zOrderOnTop(true);
		this.newInstance(op);
	} 
 
	@Override 
	public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
		if (this.menu != 0) {
			inflater.inflate(this.menu, menu);
		} 
	} 
 
	@Override 
	public boolean onContextItemSelected(android.view.MenuItem item) {
		return super.onContextItemSelected(item);
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: camera
    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)
    { 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
	            setMarkers(mData);
	        } 
 
	    } 
		private GoogleMap Mmap;
		GoogleMapOptions options = new GoogleMapOptions();
 
		 
		@SuppressLint("NewApi") 
		@Override 
		protected void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState); 
			 
			//Compuebo q este el array para parsearlo 
			if(mData == null){ 
				opciones=MainActivity.opciones; 
		    	new DownloadTask().execute(opciones); 
			} 
			 
			 
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods:
import com.google.android.gms.maps.model.MarkerOptions; 
 
public class mapdemo extends FragmentActivity { 
	private GoogleMap mMap;
	private iuGeoCoder gc = new iuGeoCoder();
	private GoogleMapOptions options = new GoogleMapOptions();
    @Override 
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.mapdemo);         
//      setUpMapIfNeeded(); 
        mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
        options.mapType(GoogleMap.MAP_TYPE_SATELLITE)
        	.rotateGesturesEnabled(true)
        	.tiltGesturesEnabled(false);
        mMap.addMarker(new MarkerOptions()
        	.position(new LatLng(-33.796923, 150.922433))
        	.title("我是赵翔辰")
        	.snippet("Population: 4,137,400")
Full Snippet Info
4
CodeRank
Related Android GoogleMapOptions Questions & Answers:
See Code Examples for Android GoogleMapOptions Methods: