LocationLayer: move lazy enable to application #171
This commit is contained in:
parent
b6dc72bbb6
commit
3e4aad4d51
@ -35,6 +35,7 @@ public class LocationActivity extends SimpleMapActivity implements LocationListe
|
||||
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
|
||||
|
||||
locationLayer = new LocationLayer(mMap);
|
||||
locationLayer.setEnabled(false);
|
||||
mMap.layers().add(locationLayer);
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,6 @@ public class LocationLayer extends Layer {
|
||||
super(map);
|
||||
|
||||
mRenderer = locationRenderer = new LocationRenderer(mMap, this);
|
||||
setEnabled(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user