BingMap改变鼠标样式【Map/Pushpin/Polygon】

Microsoft.Maps.Events.addHandler(map, "mousemove", function (e) {
  // get the HTML DOM Element that represents the Map
  var mapElem = map.getRootElement();
  if (e.targetType === "map") {
    // Mouse is over Map
    mapElem.style.cursor = "crosshair";
  } else {
    // Mouse is over Pushpin, Polyline, Polygon
    mapElem.style.cursor = "pointer";
  }
});


 

你可能感兴趣的:(style,mouse,bingmap)