mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Reworded comments
This commit is contained in:
parent
9173d40fae
commit
3083a55bf5
1 changed files with 6 additions and 2 deletions
|
|
@ -400,12 +400,16 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
|||
org.osmdroid.config.Configuration.getInstance().load(this.getContext(),
|
||||
PreferenceManager.getDefaultSharedPreferences(this.getContext()));
|
||||
|
||||
mapView.setTileSource(TileSourceFactory.WIKIMEDIA); // Added tileSource - WIKIMEDIA
|
||||
// Use the Wikimedia tile server, rather than OpenStreetMap (Mapnik) which has various
|
||||
// restrictions that we do not satisfy.
|
||||
mapView.setTileSource(TileSourceFactory.WIKIMEDIA);
|
||||
mapView.setTilesScaledToDpi(true);
|
||||
|
||||
// Add referer HTTP header because the Wikimedia tile server requires it.
|
||||
// This was suggested by Dmitry Brant within an email thread between us and WMF.
|
||||
org.osmdroid.config.Configuration.getInstance().getAdditionalHttpRequestProperties().put(
|
||||
"Referer", "http://maps.wikimedia.org/"
|
||||
); // Added referer in the header
|
||||
);
|
||||
|
||||
if (applicationKvStore.getString("LastLocation")
|
||||
!= null) { // Checking for last searched location
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue