DragInteraction.prototype.OnUp=function (e)
{

if (this.drag) {

this.element.style.position='relative';
   this.element.style.left = 0;
   this.element.style.top = 0;
   this.element.style.clip = 'rect(' + 0 + ' ' + this.element.width + ' ' + this.element.height + ' ' + 0 +')';
   this.PointsData.AddPoint(e.clientX+GetScrollLeft(this.element), e.clientY+GetScrollTop(this.element));
   if (this.onComplete) this.onComplete();
   this.PointsData.Clear();
   this.drag = false;
}

else

     this.PointsData.Clear();         //没拖动要清除选中的点,这条语句必须加否则单击地图但是没有拖动时,下次再单击但没有拖动出现地图自动拖动的现象
   
}

     不知现在的这个js有没有修正过来。


相关文章:

  • 2021-05-17
  • 2021-10-21
  • 2022-12-23
  • 2021-08-23
  • 2021-11-19
  • 2021-07-19
  • 2022-12-23
  • 2022-01-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-03-01
  • 2021-12-03
相关资源
相似解决方案