[英]Bing Maps: how to get rid of names and borders
I want to embed a satellite Bing map without country / city information and without borders, basically I only want the satellite photos and add my custom pins. 我想嵌入没有国家/城市信息且没有边界的Bing卫星地图,基本上我只想要卫星照片并添加我的自定义图钉。 Is there a way to do that?
有没有办法做到这一点?
Right now, I create my map with: 现在,我使用以下方法创建地图:
var map = new Microsoft.Maps.Map(document.getElementById("bMap"),
{
credentials:"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
center: new Microsoft.Maps.Location(35.173808, 90.402344),
mapTypeId: Microsoft.Maps.MapTypeId.birdseye,
zoom: 3,
disableZooming: true,
showCopyright: false,
showDashboard: false,
enableSearchLogo: false
}
);
For sure, you can use the mapTypeId
property in the mapOption
and replace your line: 可以肯定,你可以使用
mapTypeId
在物业mapOption
并更换您的线路:
mapTypeId: Microsoft.Maps.MapTypeId.birdseye,
By this line: 通过此行:
mapTypeId: Microsoft.Maps.MapTypeId.aerial,
See the MSDN for reference: http://msdn.microsoft.com/en-us/library/gg427625.aspx 请参阅MSDN以获取参考: http : //msdn.microsoft.com/zh-cn/library/gg427625.aspx
Also, in combination, you need to configure the label information by using the labelOverlay
property: 另外,结合起来,您需要使用
labelOverlay
属性配置标签信息:
var mapOptions =
{
credentials:"Your Bing Maps Key",
mapTypeId: Microsoft.Maps.MapTypeId.aerial,
center: new Microsoft.Maps.Location(37.794973,-122.393542),
zoom: 17,
labelOverlay: Microsoft.Maps.LabelOverlay.hidden
}
//Load the map
var map = new Microsoft.Maps.Map(document.getElementById("mapDiv"), mapOptions );
Here is the MSDN reference: 这是MSDN参考:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.