Google Maps - Switching between Street View Panorama locations smoothly

China☆狼群 提交于 2019-12-30 08:09:08

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/29943112/google-maps-switching-between-street-view-panorama-locations-smoothly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!