谷歌地图 api v3 导航控制 css
是否可以使用CSS更改Google地图API v3的navigationControl的位置?
我从谷歌搜索中找不到任何有用的信息。
Is this possible to change the location of navigationControl of Google map API v3 by using CSS?
I couldn't find any useful from google search.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
设置默认控件(例如 navigationControl)位置的推荐方法是使用 javascript 和
ControlPosition
,您可以阅读有关 此处。The recommended way to set the locations of the default controls (such as the navigationControl) is using javascript and the
ControlPosition
which you can read about here.不,这是不可能的,或者至少非常困难,因为导航控件没有 id 或类名。
但是您可以通过插入一个“不可见”div 来“推动”该控件,如下所示:
这里我将导航控件推向更接近顶部的位置。
No its not possible, or at least very difficult, because the navigation controls dont have an id or a class name.
But you can "push" the control by inserting an "invisible" div like this:
Here I push the navigation control closer to the top.
这个例子应该有帮助 http://www.wolfpil.de/v3/textualzoom.html
This example should help http://www.wolfpil.de/v3/textualzoom.html