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

来源:互联网 发布:php推广系统源代码 编辑:程序博客网 时间:2024/06/05 05:38
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";  }});


 

2 0
原创粉丝点击