1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-07-17 01:32:29 +02:00

Replace old Mapbox tiles with Static Tiles API

Old Mapbox classic styles and API have been deprecated then removed
since June 2020. This PR changes the default Mapbox tiles to request the
new API.

See <https://docs.mapbox.com/help/troubleshooting/migrate-legacy-static-tiles-api/>
This commit is contained in:
Mattéo Delabre
2020-10-14 17:12:39 +02:00
parent acd3cf1fe5
commit be8bfd2bf5

View File

@ -13,13 +13,13 @@ export class MapService {
constructor(private networkService: NetworkService) {
MapService.MAPBOXLAYERS = [{
name: 'street', url: 'https://api.tiles.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token='
name: 'street', url: 'https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/256/{z}/{x}/{y}?access_token='
+ Config.Client.Map.mapboxAccessToken
}, {
name: 'satellite', url: 'https://api.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.png?access_token='
name: 'satellite', url: 'https://api.mapbox.com/styles/v1/mapbox/satellite-v9/tiles/256/{z}/{x}/{y}?access_token='
+ Config.Client.Map.mapboxAccessToken
}, {
name: 'hybrid', url: 'https://api.tiles.mapbox.com/v4/mapbox.streets-satellite/{z}/{x}/{y}.png?access_token='
name: 'hybrid', url: 'https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v11/tiles/256/{z}/{x}/{y}?access_token='
+ Config.Client.Map.mapboxAccessToken
}
];