gpt4 book ai didi

java - 函数removeAnnotation的参数是什么

转载 作者:太空宇宙 更新时间:2023-11-04 13:16:11 27 4
gpt4 key购买 nike

有谁知道发送给map.removeAnnotation();的参数是什么?

mapView.removeAnnotations(["list"]);

最佳答案

我有一节课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);

我需要删除注释,一直更新更新时间

关于java - 函数removeAnnotation的参数是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33500492/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com