当前位置: 动力学知识库 > 问答 > 编程问答 >

google maps api 3 - 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

});

网友答案:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: