MapXtreme2005 自带的文件夹MapXtremeWebResources中的Interaction.js中的缺陷代码

 

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有没有修正过来。


posted on 2010-12-27 10:00  carekee  阅读(266)  评论(0)    收藏  举报