diff --git a/opensrp-eusm/build.gradle b/opensrp-eusm/build.gradle
index 77c9260..a57d31f 100644
--- a/opensrp-eusm/build.gradle
+++ b/opensrp-eusm/build.gradle
@@ -51,7 +51,7 @@ android {
minSdkVersion androidMinSdkVersion
targetSdkVersion androidTargetSdkVersion
versionCode 1
- versionName "0.1.1"
+ versionName "0.1.2"
multiDexEnabled true
buildConfigField "long", "MAX_SERVER_TIME_DIFFERENCE", "1800000l"
buildConfigField "boolean", "TIME_CHECK", "false"
@@ -218,7 +218,7 @@ dependencies {
exclude group: 'com.android.support', module: 'appcompat-v7'
}
- implementation('org.smartregister:opensrp-client-native-form:2.1.3-r12-SNAPSHOT@aar') {
+ implementation('org.smartregister:opensrp-client-native-form:2.1.8-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'cardview-v7'
diff --git a/opensrp-eusm/src/main/AndroidManifest.xml b/opensrp-eusm/src/main/AndroidManifest.xml
index 16adf60..eb54988 100644
--- a/opensrp-eusm/src/main/AndroidManifest.xml
+++ b/opensrp-eusm/src/main/AndroidManifest.xml
@@ -76,7 +76,12 @@
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" />
-
+
getMinMaxZoomMapDownloadPair() {
public List getBaseLayers() {
return Arrays.asList(
BaseLayerSwitchModel.builder().baseLayer(new DigitalGlobeLayer()).build(),
- BaseLayerSwitchModel.builder().baseLayer(new MapBoxLayer()).isDefault(true).build(),
+ BaseLayerSwitchModel.builder().baseLayer(new MapBoxLayer()).build(),
BaseLayerSwitchModel.builder().baseLayer(new StreetsBaseLayer(EusmApplication.getInstance().getBaseContext())).build(),
- BaseLayerSwitchModel.builder().baseLayer(new SatelliteStreetsLayer(EusmApplication.getInstance().getBaseContext())).build()
+ BaseLayerSwitchModel.builder().baseLayer(new SatelliteStreetsLayer(EusmApplication.getInstance().getBaseContext())).isDefault(true).build()
);
}
diff --git a/opensrp-eusm/src/main/java/org/smartregister/eusm/layer/SatelliteStreetsLayer.java b/opensrp-eusm/src/main/java/org/smartregister/eusm/layer/SatelliteStreetsLayer.java
index 0cfedcf..59e526e 100644
--- a/opensrp-eusm/src/main/java/org/smartregister/eusm/layer/SatelliteStreetsLayer.java
+++ b/opensrp-eusm/src/main/java/org/smartregister/eusm/layer/SatelliteStreetsLayer.java
@@ -8,6 +8,7 @@
import com.mapbox.mapboxsdk.style.layers.FillLayer;
import com.mapbox.mapboxsdk.style.layers.Layer;
import com.mapbox.mapboxsdk.style.layers.PropertyFactory;
+import com.mapbox.mapboxsdk.style.sources.RasterSource;
import com.mapbox.mapboxsdk.style.sources.Source;
import com.mapbox.mapboxsdk.style.sources.VectorSource;
@@ -31,14 +32,17 @@ public class SatelliteStreetsLayer extends BaseLayer {
private String streetSourceId = "composite";
private ArrayList