I am using this code for load google map private GoogleMap myMap;

            marker = myMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(getAddress(latitude, longitude)));
            Location = new LatLng(latitude, longitude);
            CameraPosition cameraPosition = new CameraPosition.Builder().target(Location).zoom(15) 
                    .bearing(90) // Sets the orientation of the camera to
                    .tilt(30) // Sets the tilt of the camera to 30 degrees
                    .build(); // Creates a CameraPosition from the builder
            // myMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));
            myMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 15));

but map is not loading and occurring this issue

enter image description here

Related posts

Recent Viewed