我使用 Bing Maps AJAX Control 7.0 ISDK。
我想关闭鸟瞰视图中的街道标签。
问题已被提出,但对于 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));
}});
你能帮我做吗?