Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
几个月前,Google Maps v3 控件具有漂亮的 CSS# 抛光外观。现在它们看起来很可怕(见附图)。我不认为我做了任何会改变他们外表的事情。我怎样才能让他们回来?有没有其他人遇到过这种行为?
它发生在 3.7 版 Maps JS API 发布之后:如果你查看changelog,有一行: New visual style of default controls。
New visual style of default controls
假设你不知道这个事实并且不使用一些新功能,你可以在加载库时指定以前版本的 api,在脚本标签中使用类似的 url 或作为 google js loader 的参数:
http://maps.googleapis.com/maps/api/js?v=3.6&sensor=true_or_false
API 版本控制