【问题标题】:Bing Maps AJAX Control 7.0 - how can I turn off street labels in Bird's Eye view?Bing Maps AJAX Control 7.0 - 如何在鸟瞰视图中关闭街道标签?
【发布时间】:2013-01-01 07:07:45
【问题描述】:

我使用 Bing Maps AJAX Control 7.0 ISDK。

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

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)); 
}});

你能帮我做吗?

【问题讨论】:

    标签: bing-maps


    【解决方案1】:

    添加此选项

    labelOverlay : Microsoft.Maps.LabelOverlay.hidden

    【讨论】:

    • 谢谢,labelOverlay 正是我所需要的。
    猜你喜欢
    • 1970-01-01
    • 2023-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-24
    相关资源
    最近更新 更多