Skip to content

Commit

Permalink
Removing apple in the meantime, while accessKeys are not correctly fe…
Browse files Browse the repository at this point in the history
…tched
  • Loading branch information
jo-chemla committed Jul 26, 2024
1 parent 7c1df70 commit 7344a40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ const basemapsTmsSources: any = {
maxzoom: 20,
},
// Apple requires a changing accessKey
[BasemapsIds.Apple]: {
url: "https://sat-cdn3.apple-mapkit.com/tile?style=7&size=1&scale=1&z={z}&x={x}&y={y}&v=9801&accessKey=1721982180_2825845599881494057_%2F_UvNg5jEboEb8eMslp86Eeymjt%2FfRcTunBvgsiAiEb6Q%3D",
maxzoom: 20,
},
// [BasemapsIds.Apple]: {
// url: "https://sat-cdn3.apple-mapkit.com/tile?style=7&size=1&scale=1&z={z}&x={x}&y={y}&v=9801&accessKey=1721982180_2825845599881494057_%2F_UvNg5jEboEb8eMslp86Eeymjt%2FfRcTunBvgsiAiEb6Q%3D",
// maxzoom: 20,
// },
[BasemapsIds.Yandex]: {
// url: "https://core-sat.maps.yandex.net/tiles?l=sat&x={x}&y={y}&z={z}&scale=1&lang=ru_RU",
url: yandex_url,
Expand Down Expand Up @@ -448,7 +448,7 @@ async function retrieveAppleAccessToken() {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36',
'Referer': 'https://beta.maps.apple.com',
'Origin': 'https://beta.maps.apple.com',
'x-requested-with': 'https://beta.maps.apple.com',
// 'x-requested-with': 'https://beta.maps.apple.com',
}
const appleMapsHtml = await ky.get(
proxiedUrl,
Expand Down

0 comments on commit 7344a40

Please sign in to comment.