mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
See issue #590 This switches to using the Wikimedia tile server for providing map data. It comes with a couple of drawbacks which are currently unavoidable, but such is the way of open-source... - The WMF map server does not provide vector tiles, or rather it doesn't provide vectors that are compatible with the Mapbox SDK :( - It provides only one "theme" of tiles, so you will no longer have a dark vs. light theme.
26 lines
No EOL
553 B
JSON
26 lines
No EOL
553 B
JSON
{
|
|
"version": 8,
|
|
"sources": {
|
|
"wikimedia-osm": {
|
|
"type": "raster",
|
|
"tiles": [
|
|
"https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png"
|
|
],
|
|
"tileSize": 128
|
|
}
|
|
},
|
|
"layers": [
|
|
{
|
|
"id": "background",
|
|
"type": "background",
|
|
"paint": {
|
|
"background-color": "#606060"
|
|
}
|
|
},
|
|
{
|
|
"id": "osm",
|
|
"type": "raster",
|
|
"source": "wikimedia-osm"
|
|
}
|
|
]
|
|
} |