本文介绍了Google地图 - 顺利切换Street View Panorama地点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的,其中类似于maps.google.com我有一个滑块在页面的底部与街景/ panos。当您点击图片时,它会将您带到相同的街景视图。



如何实现Google在从一个街景视图切换时所使用的同类过渡效果到另一个?它非常光滑,避免了我目前正在经历的大量生涩瓦片。

继承,

解决方案

您是否尝试过制作2个地图容器,然后加载另一个地图容器并淡入淡出另一个在改变它们时来回切换。

I have a simple map proof of concept where, similar to maps.google.com I have a slider at the bottom of the page with street views / panos. When you click on the image it takes you to the same street view.

How can I achieve the same kind of transition effect used by google when they transition from one street view to another? Its really smooth avoids a lot of the jerky tile rerendering I'm currently experiencing.

Heres the GitHub Repo if it'll help.

解决方案

Have you tried maybe making 2 map containers, then load the other one and fade in while fading out the other an toggle back and forth when changing them.

这篇关于Google地图 - 顺利切换Street View Panorama地点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 16:43