caparol6991

Untitled

Apr 15th, 2019
138
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void onMapReady(GoogleMap googleMap) {
  2. mMap = googleMap;
  3.  
  4. // Add a marker in Sydney and move the camera
  5. LatLng localization = new LatLng(lat, lng);
  6. mMap.addMarker(new MarkerOptions().position(localization).title("Ostatnia lokalizacja pojazdu"));
  7. mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(localization,15));
  8.  
  9. googleMap.animateCamera(CameraUpdateFactory.zoomIn());
  10. // Zoom out to zoom level 10, animating with a duration of 2 seconds.
  11. googleMap.animateCamera(CameraUpdateFactory.zoomTo(15), 2000, null);
  12. }
RAW Paste Data