From 3e4aad4d51536e61147190acaafc78c96be6e945 Mon Sep 17 00:00:00 2001 From: Emux Date: Thu, 8 Dec 2016 20:26:50 +0200 Subject: [PATCH] LocationLayer: move lazy enable to application #171 --- .../src/org/oscim/android/test/LocationActivity.java | 1 + vtm/src/org/oscim/layers/LocationLayer.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/vtm-android-example/src/org/oscim/android/test/LocationActivity.java b/vtm-android-example/src/org/oscim/android/test/LocationActivity.java index 413de26d7..170ce21d7 100644 --- a/vtm-android-example/src/org/oscim/android/test/LocationActivity.java +++ b/vtm-android-example/src/org/oscim/android/test/LocationActivity.java @@ -35,6 +35,7 @@ public void onCreate(Bundle savedInstanceState) { locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locationLayer = new LocationLayer(mMap); + locationLayer.setEnabled(false); mMap.layers().add(locationLayer); } diff --git a/vtm/src/org/oscim/layers/LocationLayer.java b/vtm/src/org/oscim/layers/LocationLayer.java index fc45085af..73d2185c3 100644 --- a/vtm/src/org/oscim/layers/LocationLayer.java +++ b/vtm/src/org/oscim/layers/LocationLayer.java @@ -27,7 +27,6 @@ public LocationLayer(Map map) { super(map); mRenderer = locationRenderer = new LocationRenderer(mMap, this); - setEnabled(false); } @Override