Closed
Description
I am trying to access the StreetViewService once the API is loaded.
If I use the .load method (deprecated) like this:
LOADER.load()
.then((google) => {
console.log(google);
const SV = new google.maps.StreetViewService();
})
.catch((error) => {
console.log(error);
});
It works no issues, however when I do:
LOADER.importLibrary("maps")
.then(({ Map }) => {
console.log(Map);
})
.catch((error) => {
console.log(error);
});
That Map object doesn't have StreetViewService method. I believe I came to this problem time ago, but can't remember if it was a limitation or if I'm doing something wrong.