GoogleMapAPIv3 Streetview Upload Event

im creating a website and i use panorama to the street. Now, some of my target users may not have the fastest Internet access, so I want to show a pretty loading screen until the panorama is fully loaded. however, I could not find any events that fire after loading the street panorama.

Is he there? or if not, how can I create a faux event that fires when the panorama is fully loaded.

thank

+3
source share
2 answers

As noted on this question , SDView StreetView does not fire any event when street loading is completed.

+2
source

, . "" Streetview, :

// Handle loaded-like event
var sv = new google.maps.StreetViewService();
sv.getPanorama({location: camera.eye, radius: 50}, function (data, status) {
    if (status !== 'OK') {
        console.log(`Streetview processSVData status = ${status}`);
        return;
    }
    alert(`Streetview loaded! β€” processSVData status = ${status}`);
}
0

All Articles