Assigned
Status Update
Comments
ra...@google.com <ra...@google.com> #2
Thanks for your suggestion!
We'll be reviewing this for further consideration. Please star this issue to get updates and leave comments for additional information. Please note that starring the issue also provides our product team with valuable feedback on the importance of the issue to our customers.
Description
In our application we are using the StreetViewPanorama API to display custom panorama. But our data is served by a backend that require a bearer token for authentication ('Authorization' header with value 'Bearer xxxxxxxxxxxx')
It seems that it is currently not possible to use the StreetViewPanorama API in this case. Indeed the API only allows to provide the tiles urls through the google.maps.StreetViewTileData.getTileUrl() function, and StreetViewPanorama itself is doing the fetch.
This forces us to use other authentication schemes (cookie, or token directly in URL) which is not ideal.
Possible solutions:
- add a field in google.maps.StreetViewTileData to pass a token to be used in the Authorization header when fetching the tiles;
- or add a field to pass any custom headers;
- or add the possibility to use a custom getTiles() function to fetch the tiles instead of the getTilesUrl() function.
using google.maps.version 3.51.5
Regards,