码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-05-21 10:47:53      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:bingmap   mouse   style   

<span style="font-size:18px;">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";
  }
});
</span>


 

BingMap改变鼠标样式【Map/Pushpin/Polygon】,布布扣,bubuko.com

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

标签:bingmap   mouse   style   

原文地址:http://blog.csdn.net/jcx5083761/article/details/26402723

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!