Open GoogleCodeExporter opened 8 years ago
Please try the MyLocationNewOverlay instead of the deprecated
MyLocationOverlay. Also please look at the OpenStreetMapViewer project which
shows how to properly use the location overlay. You should not be calling the
enableXYZ() methods from the constructor of the overlay - you should be calling
enableXYZ() from onResume() and disableXYZ() from onPause().
Original comment by kurtzm...@gmail.com
on 7 Aug 2013 at 2:06
thank you very much for your feedback.
But where is MyLocationNewOverlay class, My code is :
-------------------------------------
import org.osmdroid.views.overlay.MyLocationOverlay;
public class MycaoLocationOverlay extends MyLocationOverlay {
private Context context;
private double offsetlat=0;
private double offsetlng=0;
Bitmap bmp;
public MycaoLocationOverlay(Context context, MapView mapView) {
super(context, mapView);
try {
this.context = context;
-----------------------------
So in org.osmdroid.views.overlay.* package has not MyLocationNewOverlay class,
I found it.
Original comment by caoyan...@gmail.com
on 8 Aug 2013 at 2:57
The package/class name is
org.osmdroid.views.overlay.mylocation.MyLocationNewOverlay
Take a look at our sample project for an example on how to use:
https://code.google.com/p/osmdroid/source/browse/trunk/OpenStreetMapViewer/src/o
rg/osmdroid/MapFragment.java
Original comment by kurtzm...@gmail.com
on 9 Aug 2013 at 2:41
Original issue reported on code.google.com by
caoyan...@gmail.com
on 29 Jul 2013 at 2:44