replace https workaround with uriScheme API param

See https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata#template-parameters

Addendum to #10798
This commit is contained in:
Martin Raifer
2025-02-22 09:51:16 +01:00
committed by GitHub
parent fb1bce5a8a
commit f2615f8a70

View File

@@ -16,7 +16,7 @@ import {
import { utilAesDecrypt, utilArrayUnion, utilQsString, utilRebind, utilStringQs, utilTiler, utilUniqueDomId } from '../util';
const streetsideApi = 'https://dev.virtualearth.net/REST/v1/Imagery/MetaData/Streetside?mapArea={bbox}&key={key}&count={count}';
const streetsideApi = 'https://dev.virtualearth.net/REST/v1/Imagery/MetaData/Streetside?mapArea={bbox}&key={key}&count={count}&uriScheme=https';
const maxResults = 500;
const bubbleAppKey = utilAesDecrypt('5c875730b09c6b422433e807e1ff060b6536c791dbfffcffc4c6b18a1bdba1f14593d151adb50e19e1be1ab19aef813bf135d0f103475e5c724dec94389e45d0');
const pannellumViewerCSS = 'pannellum/pannellum.css';
@@ -123,8 +123,7 @@ function loadNextTilePage(which, url, tile) {
loc: loc,
key: bubbleId,
imageUrl: bubble.imageUrl
.replace('{subdomain}', bubble.imageUrlSubdomains[0])
.replace(/^http:/, 'https:'), // always use HTTPS (see #10797)
.replace('{subdomain}', bubble.imageUrlSubdomains[0]),
ca: bubble.he || bubble.heading,
captured_at: bubble.vintageEnd,
captured_by: 'microsoft',