Commit cf4bc52 1 parent 048f4fa commit cf4bc52 Copy full SHA for cf4bc52
File tree 2 files changed +4
-2
lines changed
android/GoogleMapsV2CustomBalloons
src/com/hrupin/sample/googlemapsv2customballoons
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 35
35
android : theme =" @style/AppTheme" >
36
36
<meta-data
37
37
android : name =" com.google.android.maps.v2.API_KEY"
38
- android : value =" your_api_key " />
38
+ android : value =" AIzaSyAgeMHmvUQww2xFwB9hBzsUBFwgfZgNcfQ " />
39
39
40
40
<activity
41
41
android : name =" com.hrupin.sample.googlemapsv2customballoons.MainActivity"
Original file line number Diff line number Diff line change 3
3
import android .os .Bundle ;
4
4
import android .support .v4 .app .FragmentActivity ;
5
5
6
+ import com .google .android .gms .maps .CameraUpdateFactory ;
6
7
import com .google .android .gms .maps .GoogleMap ;
7
8
import com .google .android .gms .maps .SupportMapFragment ;
8
9
import com .google .android .gms .maps .model .BitmapDescriptorFactory ;
@@ -23,9 +24,10 @@ protected void onCreate(Bundle savedInstanceState) {
23
24
map = ((SupportMapFragment ) getSupportFragmentManager ().findFragmentById (R .id .map )).getMap ();
24
25
25
26
if (map != null ) {
26
- map .addMarker (new MarkerOptions ().position (LOS_ANGELES ).title ("Los Angeles" ));
27
+ map .addMarker (new MarkerOptions ().position (LOS_ANGELES ).title ("Los Angeles" )). showInfoWindow () ;
27
28
map .addMarker (new MarkerOptions ().position (SAN_FRANCISCO ).title ("San Francisco" )
28
29
.icon (BitmapDescriptorFactory .fromResource (R .drawable .ic_launcher )));
30
+ map .animateCamera (CameraUpdateFactory .newLatLng (LOS_ANGELES ));
29
31
}
30
32
}
31
33
You can’t perform that action at this time.
0 commit comments