Skip to content

Commit 652dade

Browse files
committed
Fixed wikimedia tiles not loaded in nearby map(Fixed commons-app#2335)
1 parent 9882d24 commit 652dade

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
@@ -517,7 +517,7 @@ private void setupMapView(Bundle savedInstanceState) {
517517
MapboxMapOptions options = new MapboxMapOptions()
518518
.compassGravity(Gravity.BOTTOM | Gravity.LEFT)
519519
.compassMargins(new int[]{12, 0, 0, 24})
520-
.styleUrl(Style.OUTDOORS)
520+
.styleUrl("asset://mapstyle.json")
521521
.logoEnabled(false)
522522
.attributionEnabled(false)
523523
.camera(new CameraPosition.Builder()
@@ -534,7 +534,6 @@ private void setupMapView(Bundle savedInstanceState) {
534534
addMapMovementListeners();
535535
updateMapSignificantlyForCurrentLocation();
536536
});
537-
mapView.setStyleUrl("asset://mapstyle.json");
538537
}
539538
}
540539

0 commit comments

Comments
 (0)