定位蓝点功能
This commit is contained in:
@@ -411,7 +411,6 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
@Override
|
||||
public void showMyLocation(boolean visible) {
|
||||
if (checkAMapView()) {
|
||||
mMapView.getMap().setMyLocationEnabled(visible);
|
||||
MyLocationStyle style = mMapView.getMap().getMyLocationStyle();
|
||||
style.showMyLocation(visible);
|
||||
mMapView.getMap().setMyLocationStyle(style);
|
||||
@@ -424,6 +423,7 @@ 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(
|
||||
@@ -462,7 +462,7 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
public void onNaviStarted() {
|
||||
if (checkAMapView()) {
|
||||
mMapView.setCarOverlayVisible(true);
|
||||
//showMyLocation( false );
|
||||
showMyLocation( false );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user