Code example for Marker

Methods: getId, getTitle

0
	} 
 
	@Override 
	public void onInfoWindowClick(Marker marker) {
		 
		if(marker.getTitle() == null){
			double lat = marker.getPosition().latitude;
			double lng = marker.getPosition().longitude;
			Log.d(getLocalClassName(),"lat: " + lat + " lng: " + lng);
			 
			 
			Intent i = new Intent(Map.this, RegisterSite.class);     	 			
			i.putExtra("latitude", Double.toString(lat));
			i.putExtra("longitude", Double.toString(lng));
			startActivity(i);
			 
		}else{ 
			 
		 
 
			Site site = presenter.getSiteByIdMarker(marker.getId());
			/** 
			 * Editamos el site 
			 */ 
			if (site.getOwnerId().equals(conf.getIdFacebook())){
				Intent i = new Intent(Map.this, ModifySite.class);