1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08: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
No known key found for this signature in database
GPG Key ID: AE3FBD02DC583ABB

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
}
];