Forum Xamarin.iOS

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

How to Remove Annotation from MapView

roxinroxin IDMember
edited May 2016 in Xamarin.iOS

Hi all, I have a newbie question.

I want to remove some or all annotation in MapView. However, I couldn't find a way to do it. This is what I've tried:

List<BuswayAnnotation> BuswayPin; ... foreach (BuswayAnnotation item in BuswayPin) { mapView.RemoveAnnotation (item); }

BuswayAnnotation is a class that extend MKAnnotation.

Is there any example that I can follow to remove some annotation from MapView?

Thank you in advance!

Best Answer

Answers

  • Hi

    I have a question, can mapviews we used in both android and ios?

  • RonaldoButrusRonaldoButrus Member ✭✭

    @LectonRamasila said:
    Hi

    I have a question, can mapviews we used in both android and ios?

    I know it's five years too late, but the answer is here nonetheless.

    Xamarin.iOS - you can use MapKit and CoreLocation to present maps.
    Xamarin.Android - you can use the Google Maps API to present maps.

Sign In or Register to comment.