Java 函数removeAnnotation的参数是什么

Java 函数removeAnnotation的参数是什么,java,android,Java,Android,有人知道要发送到map.removeAnnotation()的参数是什么吗 我有一节课 onLocationChange mapView.removeAnnotation('pin'); glat = loc.getLatitude(); glng = loc.getLongitude(); //Setting the GPS Lat, Lng into the textView //textViewGpsLat

有人知道要发送到
map.removeAnnotation()的参数是什么吗

我有一节课 onLocationChange

        mapView.removeAnnotation('pin');

        glat = loc.getLatitude();
        glng = loc.getLongitude();

        //Setting the GPS Lat, Lng into the textView
        //textViewGpsLat.setText("GPS Latitude:  " + glat);
        //textViewGpsLng.setText("GPS Longitude:  " + glng);
        mapView.addMarker(new MarkerOptions().title("pin").position(new LatLng(glat, glng)));


        Log.d("LAT & LNG GPS:", glat + " " + glng);
和类showLoc

        glocManager  = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
        glocListener = new MyLocationListenerGPS();
        glocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000 * 1, 0, glocListener);
我需要删除注释,每次更新更新时我都有一个类 onLocationChange

        mapView.removeAnnotation('pin');

        glat = loc.getLatitude();
        glng = loc.getLongitude();

        //Setting the GPS Lat, Lng into the textView
        //textViewGpsLat.setText("GPS Latitude:  " + glat);
        //textViewGpsLng.setText("GPS Longitude:  " + glng);
        mapView.addMarker(new MarkerOptions().title("pin").position(new LatLng(glat, glng)));


        Log.d("LAT & LNG GPS:", glat + " " + glng);
和类showLoc

        glocManager  = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
        glocListener = new MyLocationListenerGPS();
        glocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000 * 1, 0, glocListener);

我需要删除注释,所有的更新时间都是这样的

你能,至少,说明一下我们谈论的是什么类吗?这个方法在我看来是IOS MKMapView的。你能,至少,说明一下我们谈论的是什么类吗?我从IOS MKMapView中看到了该方法。