Code example for MapFragment

Methods: getMap

0
	@Override 
	protected void onStart() { 
		// TODO Auto-generated method stub 
		super.onStart(); 
		mMapFragment = ((MapFragment) getFragmentManager().findFragmentByTag("Mapa"));
		mMap = mMapFragment.getMap();
		 
		 
		mMap.setIndoorEnabled(true);
		mMap.setMyLocationEnabled(true);
		 
		 
		mMap.setTrafficEnabled(true);
		 
		String[] cordenadas = Cordenadas.split(",");
		 
		CameraUpdate camUpd1 =
			    CameraUpdateFactory.newLatLngZoom(new LatLng(Double.parseDouble(cordenadas[0]), Double.parseDouble(cordenadas[1])),mMap.getMaxZoomLevel() -2);
			  
		mMap.moveCamera(camUpd1);
Experience pair programming with AI  Get Codota for Java