GetJedi/app/src/main/java/edu/getjedi/frontend/mobile/MainMapActivity.java
@Override
    public void onMapReady(GoogleMap googleMap) {
        this.googleMap = googleMap;
        final MainMapActivity thisActivity = this;
        googleMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {

            @Override
            public View getInfoWindow(Marker arg0) {
                return null;
            }

            @Override
            public View getInfoContents(Marker marker) {

                LinearLayout info = new LinearLayout(thisActivity);
                info.setOrientation(LinearLayout.VERTICAL);

                TextView title = new TextView(thisActivity);
                title.setTextColor(Color.BLACK);
                title.setGravity(Gravity.CENTER);
                title.setTypeface(null, Typeface.BOLD);
                title.setText(marker.getTitle());

                TextView snippet = new TextView(thisActivity);
                snippet.setTextColor(Color.GRAY);
                snippet.setText(marker.getSnippet());

                info.addView(title);
                info.addView(snippet);

                return info;
            }
        });
        locationHandler.setGoogleMap(googleMap); /** Send the map to the location handler */
        this.getAppContext().performAction(googleMap); /** Flags to the state object that the map is ready to use */
    }
/**
     * 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.
     * 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.
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 . 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) {
        this.googleMap = googleMap;
        final MainMapActivity thisActivity = this;
        googleMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {
            @Override
            public View getInfoWindow(Marker arg0) {
                return null;
            }
            @Override
            public View getInfoContents(Marker marker) {
                LinearLayout info = new LinearLayout(thisActivity);
                info.setOrientation(LinearLayout.VERTICAL);
                TextView title = new TextView(thisActivity);
                title.setTextColor(Color.BLACK);
                title.setGravity(Gravity.CENTER);
                title.setTypeface(null, Typeface.BOLD);
                title.setText(marker.getTitle());
                TextView snippet = new TextView(thisActivity);
                snippet.setTextColor(Color.GRAY);
                snippet.setText(marker.getSnippet());
                info.addView(title);
                info.addView(snippet);
                return info;
            }
        });
        locationHandler.setGoogleMap(googleMap); /** Send the map to the location handler */
        this.getAppContext().performAction(googleMap); /** Flags to the state object that the map is ready to use */
    }
@ Override public void onMapReady ( GoogleMap googleMap ) { this . googleMap = googleMap ; final MainMapActivity thisActivity = this ; googleMap . setInfoWindowAdapter ( new GoogleMap . InfoWindowAdapter ( ) { @ Override public View getInfoWindow ( Marker arg0 ) { return null ; } @ Override public View getInfoContents ( Marker marker ) { LinearLayout info = new LinearLayout ( thisActivity ) ; info . setOrientation ( LinearLayout . VERTICAL ) ; TextView title = new TextView ( thisActivity ) ; title . setTextColor ( Color . BLACK ) ; title . setGravity ( Gravity . CENTER ) ; title . setTypeface ( null , Typeface . BOLD ) ; title . setText ( marker . getTitle ( ) ) ; TextView snippet = new TextView ( thisActivity ) ; snippet . setTextColor ( Color . GRAY ) ; snippet . setText ( marker . getSnippet ( ) ) ; info . addView ( title ) ; info . addView ( snippet ) ; return info ; } } ) ; locationHandler . setGoogleMap ( googleMap ) ; /** Send the map to the location handler */ this . getAppContext ( ) . performAction ( googleMap ) ; /** Flags to the state object that the map is ready to use */ }
Manipulates the map once available.
Manipulates the map once available .