app/src/main/java/com/cabify/getaride/presentation/view/activity/MainActivity.java
/**
     * Manipulates the map once available.
     * This callback is triggered when the map is ready to be used.
     * This is where we can add markers or lines, add listeners or move the camera. In this case,
     * we just add a marker near Sydney, Australia.
     * If Google Play services is not installed on the device, the user will be prompted to install
     * it inside the SupportMapFragment. This method will only be triggered once the user has
     * installed Google Play services and returned to the app.
     */
Manipulates the map once available.
This callback is triggered when the map is ready to be used.
This is where we can add markers or lines, add listeners or move the camera. In this case,
we just add a marker near Sydney, Australia.
If Google Play services is not installed on the device, the user will be prompted to install
it inside the SupportMapFragment. This method will only be triggered once the user has
installed Google Play services and returned to the app.
Manipulates the map once available . This callback is triggered when the map is ready to be used . This is where we can add markers or lines add listeners or move the camera . In this case we just add a marker near Sydney Australia . If Google Play services is not installed on the device the user will be prompted to install it inside the SupportMapFragment . This method will only be triggered once the user has installed Google Play services and returned to the app .
@Override
    public void onMapReady(GoogleMap googleMap) {
        mMap = googleMap;
        LatLng madridCoordinates = new LatLng(40.4168, -3.7038);
        mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(madridCoordinates, 13));
        focusMapOnCurrentPosition();
        mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {
            @Override
            public void onMapClick(LatLng point) {
                presenter.setPoint(point);
            }
        });
    }
@ Override public void onMapReady ( GoogleMap googleMap ) { mMap = googleMap ; LatLng madridCoordinates = new LatLng ( 40.4168 , - 3.7038 ) ; mMap . moveCamera ( CameraUpdateFactory . newLatLngZoom ( madridCoordinates , 13 ) ) ; focusMapOnCurrentPosition ( ) ; mMap . setOnMapClickListener ( new GoogleMap . OnMapClickListener ( ) { @ Override public void onMapClick ( LatLng point ) { presenter . setPoint ( point ) ; } } ) ; }
Manipulates the map once available.
Manipulates the map once available .