Google Maps API v3.22恢复为旧控件 [英] Google Maps API v3.22 reverting to old controls

查看:100
本文介绍了Google Maps API v3.22恢复为旧控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌昨天发布了他们的地图api的v3.22版本,它移动了一堆标准控件。 b

据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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆