简体   繁体   English

在chrome中打开开发者工具后,Google Maps v3速度非常慢

[英]Google maps v3 is very slow with developer tools open in chrome

Within the last few months, I have noticed that when Developer Tools is open in Google Chrome, zooming in and out of a Google Map (Google Maps JavaScript API v3) is very slow. 在过去的几个月中,我注意到在Google Chrome中打开开发人员工具时,放大和缩小Google Map(Google Maps JavaScript API v3) 非常慢。 When Developer Tools is not open, Google Maps zooms perfectly. 如果未打开开发人员工具,则Google Maps会完美缩放。

Is there a setting I can turn off to make Google Maps zoom fast again? 是否可以关闭设置以使Google地图再次快速缩放?

I have tried not recording my Network" traffic, and I am not running a "Profile" or anything. 我尝试不记录“网络”流量,并且没有运行“配置文件”或其他任何内容。

This problem is on any site with Google Maps v3 JavaScript API -- even the Google Maps Sample page: https://developers.google.com/maps/documentation/javascript/examples/map-simple 在使用Google Maps v3 JavaScript API的任何网站上,甚至在“ Google Maps示例”页面上,均会出现此问题: https : //developers.google.com/maps/documentation/javascript/examples/map-simple

I just clicked the little gear cog in the top right of Developer Tools, and then pressed "Restore defaults and reload", and now zooming Google Maps is fast again. 我只是单击了开发人员工具右上角的小齿轮,然后按了“恢复默认值并重新加载”,现在Google地图的缩放又很快了。

I must have had some setting checked that slowed it down. 我一定已经检查了一些设置,使它变慢了。

在开发者控制台->源->异步中取消选中“异步”复选框(位于屏幕最左侧)为我解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM