Code example for MapFragment

Methods: getMap

0
			super(); 
		} 
		 
		public static MapFragment newInstance(LatLng pos)
		{ 
			frag = new MapFragment();
			 
			UiSettings settings = frag.getMap().getUiSettings();
			 
			settings.setAllGesturesEnabled(false);
			settings.setMyLocationButtonEnabled(false);
			 
			frag.getMap().moveCamera(CameraUpdateFactory.newLatLngZoom(pos, 16));
			 
			frag.getMap().addMarker(new MarkerOptions().position(pos).title("Ubicación actual"));
 
			frag.getMap().animateCamera(CameraUpdateFactory.zoomTo(15), 2000, null);
 
			return frag;
		} 
		 
//		@Override 
Stop searching for code, let great code find you!  Add Codota to your java IDE