我有两个var as,
map = new Microsoft.Maps.Map(document.getElementById("mapDiv"), {
showMapTypeSelector:false,
showScalebar:false,
enableSearchLogo:false,
showDashboard:true,
credentials:"Aku0L3I-4aBqUL0zUWpJYNIp-vppMK2h",
mapTypeId:Microsoft.Maps.MapTypeId.road,
zoom:4,
center:new Microsoft.Maps.Location(38.3466110000000029,-77.0653559999999942)
});
这个Map var用于在我的bing map上绘制多边形。
greenLayer = new ClusteredEntityCollection(map, {
singlePinCallback: createPin,
clusteredPinCallback: createClusteredPin,
clusterPlacementType: 2,
clusteringEnabled: true,
visible: true,
gridSize: 50
});
这个绿色层用于在bing map上绘制引脚。
跑步时,
the polygon is up and the pins is down.
i need to draw polygon down and pins up.
如何在bing地图中执行greenlayer which comes up
。
答案 0 :(得分:1)
您可以通过简单的方式更改ClusteredEntityCollection的z-index(因为它可能是EntityCollection的扩展名):
greenLayer.setOptions({zIndex: 1000});