Bing Maps AJAX Control 7.0 - 如何在Bird's Eye视图中关闭街道标签?

时间:2012-10-30 16:26:16

标签: bing-maps

我使用Bing Maps AJAX Control 7.0 ISDK。

我想在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)); 
}});

你能帮帮我吗?

1 个答案:

答案 0 :(得分:4)

添加此选项

labelOverlay:Microsoft.Maps.LabelOverlay.hidden

相关问题