Thanks to a code snippets by @mbrzakovic I managed to get the bing aerial imagery working. This PR add them asynchronously after fetching the right tiles URL template by using an api key that I created.
If the API handshake fails the entry in the imagery flyout is not added and there is a console error like a 401 for the https://dev.virtualearth.net/REST/v1/Imagery/Metadata/AerialOSM fetch.
Thanks to a code snippets by @mbrzakovic I managed to get the bing aerial imagery working. This PR add them asynchronously after fetching the right tiles URL template by using an api key that I created.
If the API handshake fails the entry in the imagery flyout is not added and there is a console error like a
401
for thehttps://dev.virtualearth.net/REST/v1/Imagery/Metadata/AerialOSM
fetch.Preview
I deployed this version at https://tordans.github.io/parking-lanes/#17/52.47979/13.41402
About the api key
Milos' explained to follow the process at https://learn.microsoft.com/en-us/bingmaps/getting-started/bing-maps-dev-center-help/getting-a-bing-maps-key. At https://www.bingmapsportal.com/Application I now have a key which I scoped to those domains: