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.google; //from ww w .ja v a 2s.c o m import android.content.Context; import android.location.Location; import com.dennytech.smartmap.IGeoPoint; import com.dennytech.smartmap.IMyLocationOverlay; import com.google.android.maps.MapView; import com.google.android.maps.MyLocationOverlay; public class GoogleMyLocationOverlay implements IMyLocationOverlay { private MyLocationOverlay real; @Override public MyLocationOverlay real() { return real; } public GoogleMyLocationOverlay(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 GoogleGeoPoint(real.getMyLocation()); } @Override public void onLocationChanged(Location location) { real.onLocationChanged(location); } }