Code example for Marker

Methods: isInfoWindowShown, showInfoWindow

0
 
        mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {
            @Override 
            public void onInfoWindowClick(Marker marker) {
 
                if (marker.isInfoWindowShown()){
                    marker.hideInfoWindow();
                }else{ 
                    marker.showInfoWindow();
                } 
 
            } 
        }); 
 
        MapTrack mapTrack = new MapTrack(mMap,getApplicationContext());
 
        TextView localization = (TextView) findViewById(R.id.GeoCode_notification);
 
        localization.setText(description);
 
        TextView timezone = (TextView) findViewById(R.id.time_notification);