Bing Maps v7不显示导航栏 [英] Bing Maps v7 not showing navigation bar

查看:58
本文介绍了Bing Maps v7不显示导航栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Bing Maps v7 Ajax控件,但是即使设置showDashboard:true,也无法使用缩放工具看到导航栏.似乎只有在同时设置以下设置的情况下:showMapTypeSelector: false.

I am using a Bing Maps v7 Ajax Control, but can't see the navigation bar with the zoom tools even when setting showDashboard:true. It seems to only be the case when the following setting is also set: showMapTypeSelector: false.

推荐答案

这是因为showMapTypeSelector将名为hidden的类应用于导航栏div.不幸的是,我还使用了Twitter Bootstrap,它也有一个名为hidden的类,该类当然隐藏了div

This was because the showMapTypeSelector applies a class called hidden to the navigation bar div. Unfortunately I also use Twitter Bootstrap which also has a class named hidden which of course hides the div!

使用以下肮脏的CSS hack修复了该问题,如下所示:

Fixed it with a little dirty css hack as follows:

#SDKmap .hidden {
    display: block;
    visibility: visible;
}

其中SDKmap是地图元素ID.

这篇关于Bing Maps v7不显示导航栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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