Back to project page SmartMap.
The source code is released under:
Apache License
If you think the Android project SmartMap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dennytech.smartmap.impl.autonavi; /* w w w. j a v a 2s . c om*/ import android.content.Context; import android.location.Location; import com.amap.mapapi.map.MapView; import com.amap.mapapi.map.MyLocationOverlay; import com.dennytech.smartmap.IGeoPoint; import com.dennytech.smartmap.IMyLocationOverlay; public class ANMyLocationOverlay implements IMyLocationOverlay { private MyLocationOverlay real; @Override public MyLocationOverlay real() { return real; } public ANMyLocationOverlay(Context context, MapView mapView) { real = new MyLocationOverlay(context, mapView); } @Override public void enableMyLocation() { real.enableMyLocation(); } @Override public void enableCompass() { real.enableCompass(); } @Override public IGeoPoint getMyLocation() { if (real.getMyLocation() == null) { return null; } return new ANGeoPoint(real.getMyLocation()); } @Override public void onLocationChanged(Location location) { real.onLocationChanged(location); } }