3

MyLocationOverlay is deprecated. Is there any alternative?

MapView mapView;
MyLocationOverlay myLocationoverlay;
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    myLocationoverlay = new MyLocationOverlay(this, mapView);
    ...
Behy
  • 483
  • 7
  • 23

1 Answers1

5

The new class is the MyLocationNewOverlay.

Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
  • 1
    @LaurentMeyer open a pull request to rename it. I nearly did it myself several times, but there was some concern about backwards compatibility. – spy Apr 30 '16 at 13:38