Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void moveCameraTo(Location location){
- moveCameraTo(location.getLatitude(), location.getLongitude());
- }
- public void moveCameraTo(double latitude, double longitude){
- LatLng latLng = new LatLng(latitude, longitude);
- moveCameraTo(latLng);
- }
- public void moveCameraTo(LatLng latLng){
- GoogleMap googleMap = getGoogleMap();
- cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, INITIAL_MAP_ZOOM_LEVEL);
- googleMap.moveCamera(cameraUpdate);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement