【问题标题】:BING MAP LAYER AND PINS : HOW TO DRAW PINS UP ON POLYGON LAYER?BING 地图层和引脚:如何在多边形层上绘制引脚?
【发布时间】:2013-07-03 03:34:12
【问题描述】:

我有两个 var,

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 地图上绘制多边形。

greenLayer = new ClusteredEntityCollection(map, {
        singlePinCallback: createPin,
        clusteredPinCallback: createClusteredPin,
        clusterPlacementType: 2,
        clusteringEnabled: true,
        visible: true,
        gridSize: 50

    });

这个greenlayer用于在bing地图上画图钉。

跑步时,

the polygon is up and the pins is down.

i need to draw polygon down and pins up.

如何在必应地图中进行greenlayer which comes up

【问题讨论】:

  • 合理的标题请用小写或正确的大小写。

标签: php bing bing-api bing-maps


【解决方案1】:

您可以通过简单的方式更改 ClusteredEntityCollection 的 z-index(因为它应该是 EntityCollection 的扩展):

greenLayer.setOptions({zIndex: 1000});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-11-30
    • 1970-01-01
    • 2016-04-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多