2012-10-30 32 views
0

我使用Bing Maps AJAX Control 7.0 ISDK。Bing Maps AJAX Control 7.0 - 如何关闭Bird's Eye视图中的街道标签?

我想关闭鸟瞰图中的街道标签。

The question has been asked但对于API 6

我可以用导航栏做。

但导航栏是关闭我的地图:

showDashboard: false 

我没有找到关于SDK的任何解决方案:

http://www.bingmapsportal.com/isdk/ajaxv7#CreateMapWithViewOptions7

这里是我的代码:

function handlerEvent() 
{ 
    displayAlert('Handler clicked'); 
} 
Microsoft.Maps.loadModule('Microsoft.Maps.Themes.BingTheme', { callback: function() 
{ 
    map = new Microsoft.Maps.Map(document.getElementById('bingMap'), 
{ 
    credentials: 'xxxxxxxxxxxxxxxxxxxxxxx', 
    theme: new Microsoft.Maps.Themes.BingTheme(), 
    center: new Microsoft.Maps.Location(47.219058,-1.553625), 
    mapTypeId: Microsoft.Maps.MapTypeId.birdseye, 
    zoom: 16, 
    showDashboard: false 
}); 
var infoboxOptions = {title:'Text', description:'TextTextText', actions:[{label: 'Click Handler', eventHandler: handlerEvent}]}; 
map.entities.push(new Microsoft.Maps.Infobox(map.getCenter(), infoboxOptions)); 
}}); 

你能帮我这么做吗?

回答

4

添加此选项

labelOverlay:Microsoft.Maps.LabelOverlay.hidden

+0

谢谢,labelOverlay正是我需要的。 –

相关问题