Back to project page KnightNews_Android.
The source code is released under:
Copyright (c) 2014, James Van Gaasbeck All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are m...
If you think the Android project KnightNews_Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package knightnews.android; // www.j a va 2 s .c om import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.SupportMapFragment; import com.google.android.gms.maps.model.LatLng; /** * Created by jjvg on 5/27/14. */ public class UcfMapFragment extends SupportMapFragment { private static final LatLng UCF_LAT_LNG = new LatLng(28.602025, -81.200820); private GoogleMap mGoogleMap; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = super.onCreateView(inflater, container, savedInstanceState); mGoogleMap = getMap(); //16 (other good zoom) mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(UCF_LAT_LNG, 15)); // Zoom in, animating the camera. 15 mGoogleMap.animateCamera(CameraUpdateFactory.zoomTo(15.5f), 2000, null); mGoogleMap.setMyLocationEnabled(true); return v; } }