定位图标

This commit is contained in:
zhangyuanzhen
2020-02-19 18:39:02 +08:00
parent 9599f79840
commit a0095043cb

View File

@@ -424,11 +424,11 @@ public class AMapNaviViewWrapper implements IMogoMapView,
MyLocationStyle style = mMapView.getMap().getMyLocationStyle();
style.myLocationType(MyLocationStyle.LOCATION_TYPE_LOCATION_ROTATE_NO_CENTER);
style.interval(1000);
//style.anchor(0.5F,0.5F);
//style.strokeColor(Color.TRANSPARENT);
//style.strokeWidth(0);
//style.myLocationIcon(
// BitmapDescriptorFactory.fromResource(R.drawable.map_api_ic_current_location));
style.anchor(0.5F,0.5F);
style.strokeColor(Color.TRANSPARENT);
style.strokeWidth(0);
style.myLocationIcon(
BitmapDescriptorFactory.fromResource(R.drawable.map_api_ic_current_location));
mMapView.getMap().setMyLocationStyle(style);
}
}