Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Street View preload

We experience a problem with Google Street View. We want to move there using API. So, let's say, initially we load certain panoramic view. Then, we move forward for a few meters and want to load everything again with the new coordinates. What we observe is that several images are loading very slow and the result is a piece-meal panorama - with some images new, some old and some in process of being loaded.

Is there any way to optimize that process? For example, can we pre-load images in Street View? Or, can we implement the same technique that Google Street View app is using - when the entire panorama is blurred while we are moving and then loads everything together?

This is function we use:

panorama.setPano(markerPanoID);
    panorama.setPov({
    heading: me.heading,
    zoom:1,
    pitch:0
});
like image 804
user1636309 Avatar asked Nov 13 '22 22:11

user1636309


1 Answers

I found a workaround.

If you have defined motions, you can set map-canvas to display:none, execute your animation and reset your variables, then you set to display:block back and execute your animations again.

There are a issues and requests to Google Maps API, let's request this feature there!

https://code.google.com/p/gmaps-api-issues/issues/list

like image 153
raphaelluchini Avatar answered Nov 15 '22 11:11

raphaelluchini