Bing Maps v7 not showing navigation bar

别来无恙 提交于 2019-12-11 08:27:34

问题


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.


回答1:


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!

Fixed it with a little dirty css hack as follows:

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

Where SDKmap is the map element ID.



来源:https://stackoverflow.com/questions/15546192/bing-maps-v7-not-showing-navigation-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!