Google Maps API v3.22恢复为旧控件 [英] Google Maps API v3.22 reverting to old controls
问题描述
据Google Blog在 http://googlegeodevelopers.blogspot.co.uk/2015/ 09 / new-controls-style-for-google-maps.html#gpluscomments 你可以暂时恢复到旧的控件,但我无法完全解决这个问题。
博客文章说,在初始化地图之前,只需添加 google.maps.controlsStyle ='azteca'
,但我仍旧控制显示,他们与我的一些自定义控件冲突。
我已经尝试在我的 initialize()
例程(设置所有地图选项并创建 map
对象;以及 map = new google .maps.Map()
语句。
有没有人去t什么我做错了什么指针?
试试这个:
google.maps.controlStyle = 阿兹特克;
Google yesterday released v3.22 of their maps api which moves a bunch of the standard controls.
According to the Google Blog at http://googlegeodevelopers.blogspot.co.uk/2015/09/new-controls-style-for-google-maps.html#gpluscomments you can temporarily revert to the old controls, but I can;t get this to work at all.
The blog post says to simply add google.maps.controlsStyle = 'azteca'
before you initialize the map, but I'm still getting the old controls displayed and they clash with some of my custom controls.
I've tried adding the line right at the start of my initialize()
routine (which sets up all of the map options and creates the map
object; and also right before the map = new google.maps.Map()
statement.
Has anyone got any pointers as to what I'm doing wrong?
try this: google.maps.controlStyle = 'azteca';
这篇关于Google Maps API v3.22恢复为旧控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!