, поэтому я пытаюсь сделать это, когда пользователь нажимает маркер карты Google, действие покажет, что отобразит всю информацию внутри этого маркера. Но проблема в том, что все маркеры показывают тот же результат (который является элементом в первой строке моей базы данных parse.com). В настоящее время я использую Xamarin для разработки. Я буду признателен за любой ответ. Спасибо, ребята, продвинутые.Xamarin Android - маркер карты Google всегда показывает ту же информацию
public async void getGeoPoint(){
string getPlaceName, getPlacePrice, getPlaceAddress, getOwnerContact, getRentalType, getOwnerName;
string xx = autoCompleteTextView.Text;
ParseQuery<ParseObject> query = ParseObject.GetQuery ("Rentals")
.WhereEqualTo ("rentalCity", xx);
IEnumerable<ParseObject> results = await query.FindAsync();
foreach(var temp in results){
getLatitude = temp.Get<double> ("rentalLatitude");
getLongitude = temp.Get<double> ("rentalLongitude");
getPlaceName = temp.Get<string> ("rentalName");
getPlacePrice = temp.Get<string> ("rentalPrice");
getPlaceAddress = temp.Get<string> ("rentalFullAddress");
getOwnerContact = temp.Get<string> ("ownerContactNo");
getRentalType = temp.Get<string> ("rentalType");
getOwnerName = temp.Get<string> ("ownerName");
myMarker = map.AddMarker(new MarkerOptions()
.SetPosition(new LatLng(getLatitude, getLongitude))
.SetIcon(BitmapDescriptorFactory.FromResource(Resource.Drawable.edimeow))
);
}
map.MarkerClick += (object sender, GoogleMap.MarkerClickEventArgs e) => {
string selected = getPlaceName;
var passToRentalProfile = new Intent (this, typeof(HostRentalProfileList));
passToRentalProfile.PutExtra ("selected", selected);
StartActivity (passToRentalProfile);
this.Finish();
};
btnList.Click += (object sender, EventArgs e) => {
var passToUserList = new Intent (this, typeof(UserListMode));
passToUserList.PutExtra("arrData", xx);
StartActivity(passToUserList);
this.Finish();
};
}//getGeoPoint