Skip to content

Commit

Permalink
update offline map download style
Browse files Browse the repository at this point in the history
remove digital globe layer
  • Loading branch information
bennsimon committed Sep 9, 2021
1 parent c140711 commit f943a1f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
40 changes: 20 additions & 20 deletions opensrp-eusm/src/main/assets/map-download-style.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@
"data": {
"type": "FeatureCollection",
"features": []
}
},
"cluster": true,
"clusterMaxZoom": 13,
"clusterRadius": 50
},
"mapbox-streets": {
"url": "mapbox://mapbox.mapbox-streets-v8",
"type": "vector"
},
"diimagery": {
"mapbox-satellite": {
"url": "mapbox://mapbox.satellite",
"type": "raster",
"scheme": "tms",
"tiles": [
"https://access.maxar.com/earthservice/tmsaccess/tms/1.0.0/DigitalGlobe:ImageryTileService@EPSG:3857@png/{z}/{x}/{y}.png?connectId=DIGITAL_GLOBE_ID"
],
"tileSize": 256
},
"select-data": {
Expand Down Expand Up @@ -71,19 +75,15 @@
"zoom"
],
7.0,
17,
13,
13.0,
30,
15.0,
35,
17.79,
45
15
],
"circle-color": [
"match",
[
"get",
"taskStatus"
"taskStatusType"
],
[
"in_progress"
Expand All @@ -93,7 +93,11 @@
"completed"
],
"hsl(101.6,66.8%,44.9%)",
"hsl(0, 0%, 64%)"
[
"not_started"
],
"hsl(0, 0%, 64%)",
"hsl(100, 100%, 100%)"
],
"circle-stroke-width": 2,
"circle-opacity": 1
Expand All @@ -119,13 +123,9 @@
"zoom"
],
7.0,
17,
13,
13.0,
30,
15.0,
35,
17.79,
45
15
],
"circle-stroke-width": 2,
"circle-stroke-color": "hsl(0, 0%, 0%)"
Expand Down
6 changes: 4 additions & 2 deletions opensrp-eusm/src/main/assets/reveal-streets-satellite.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@
[
"zoom"
],
7.0, 13,
13.0, 15
7.0,
13,
13.0,
15
],
"circle-color": [
"match",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,6 @@ public Pair<Double, Double> getMinMaxZoomMapDownloadPair() {
@Override
public List<BaseLayerSwitchModel> getBaseLayers() {
return Arrays.asList(
BaseLayerSwitchModel.builder().baseLayer(new DigitalGlobeLayer()).build(),
BaseLayerSwitchModel.builder().baseLayer(new MapBoxLayer()).build(),
BaseLayerSwitchModel.builder().baseLayer(new StreetsBaseLayer(EusmApplication.getInstance().getBaseContext())).build(),
BaseLayerSwitchModel.builder().baseLayer(new SatelliteStreetsLayer(EusmApplication.getInstance().getBaseContext())).isDefault(true).build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public SatelliteStreetsLayer(@NonNull Context context) {

protected void createLayersAndSources(@NonNull Context context) {
RasterSource rasterSource = new RasterSource(satelliteSourceId, satelliteSourceId, 256);
VectorSource streetSource = new VectorSource(streetSourceId, "mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2");
VectorSource streetSource = new VectorSource(streetSourceId, "mapbox://mapbox.mapbox-streets-v8");
sourcesList.add(streetSource);
sourcesList.add(rasterSource);

Expand Down

0 comments on commit f943a1f

Please sign in to comment.