Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onMapReady(GoogleMap googleMap) {
- mMap = googleMap;
- // Add a marker in Sydney and move the camera
- LatLng localization = new LatLng(lat, lng);
- mMap.addMarker(new MarkerOptions().position(localization).title("Ostatnia lokalizacja pojazdu"));
- mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(localization,15));
- googleMap.animateCamera(CameraUpdateFactory.zoomIn());
- // Zoom out to zoom level 10, animating with a duration of 2 seconds.
- googleMap.animateCamera(CameraUpdateFactory.zoomTo(15), 2000, null);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement