Skip to content

Commit 954ef07

Browse files
committed
Fixed wikimedia tiles not loaded in nearby map(Fixed commons-app#2335)
1 parent 44c18ac commit 954ef07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/fr/free/nrw/commons/nearby/NearbyMapFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ private void setupMapView(Bundle savedInstanceState) {
514514
MapboxMapOptions options = new MapboxMapOptions()
515515
.compassGravity(Gravity.BOTTOM | Gravity.LEFT)
516516
.compassMargins(new int[]{12, 0, 0, 24})
517-
.styleUrl(Style.OUTDOORS)
517+
.styleUrl("asset://mapstyle.json")
518518
.logoEnabled(false)
519519
.attributionEnabled(false)
520520
.camera(new CameraPosition.Builder()
@@ -531,7 +531,6 @@ private void setupMapView(Bundle savedInstanceState) {
531531
addMapMovementListeners();
532532
updateMapSignificantlyForCurrentLocation();
533533
});
534-
mapView.setStyleUrl("asset://mapstyle.json");
535534
}
536535
}
537536

0 commit comments

Comments
 (0)