You've already forked pigallery2
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:
@ -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
|
||||
}
|
||||
];
|
||||
|
Reference in New Issue
Block a user