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
});
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With