Code example for GoogleMap

Methods: animateCamera, getCameraPosition

0
	 * 
	 * @return true if camera is animated; false otherwise. 
	 * @see #BUILDING_ZOOM_LEVEL 
	 */ 
	public boolean animateToBuildingZoomLevelIfNeeded(LatLng latLng) {
		if (_googleMap.getCameraPosition().zoom < GoogleMapManager.BUILDING_ZOOM_LEVEL) {
			animateToBuildingZoomLevel(latLng);
			return true; 
		} 
		else { 
			return false; 
		} 
	} 
 
	public void animateToBuildingZoomLevel(LatLng latLng) {
		_googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, BUILDING_ZOOM_LEVEL));
	} 
 
	public void addBuildingMarkers() { 
    	DaoSession daoSession = DatabaseService.getDaoSession(_mapFragment.getActivity());
    	List<Building> buildings = DatabaseService.getAllBuildings(daoSession);