Location layer: lazy rendering start for performance #171

This commit is contained in:
Emux 2016-11-16 14:18:14 +02:00
parent 4aaa1ce620
commit add62c9fe8
2 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,6 @@ public class LocationActivity extends SimpleMapActivity implements LocationListe
super.onResume();
enableAvailableProviders();
locationLayer.setEnabled(true);
}
@Override
@ -56,6 +55,7 @@ public class LocationActivity extends SimpleMapActivity implements LocationListe
@Override
public void onLocationChanged(Location location) {
locationLayer.setEnabled(true);
locationLayer.setPosition(location.getLatitude(), location.getLongitude(), location.getAccuracy());
// Follow location

View File

@ -27,6 +27,7 @@ public class LocationLayer extends Layer {
super(map);
mRenderer = locationRenderer = new LocationRenderer(mMap, this);
setEnabled(false);
}
@Override