LatLng position = new LatLng(37.77493, -122.41942); | |
String markerText = "San Fransisco"; | |
... | |
public void onMapReady(GoogleMap googleMap) { | |
Log.i("DEBUG", "onMapReady"); | |
//add marker | |
Marker marker = googleMap.addMarker(new MarkerOptions().position(position).title(markerText)); | |
//zoom to position with level 16 | |
CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(position, 16); | |
googleMap.animateCamera(cameraUpdate); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment