Changeset 127

Show
Ignore:
Timestamp:
08/30/11 11:14:04
Author:
dan
Message:

rcoosmapping.platformVectorLayer
Assigned hoverTimeout variable to the setTimeout return value in the hover control. This fixes the issue of clicking on a station but not getting data if the hover data had not come up.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mapping/trunk/interactivemap/lib/olMap1.1.js

    r126 r127  
    16991699            The cursor has to stop over the feature for the Timeout value before we make the call.*/ 
    17001700            thisObj = this; 
    1701             setTimeout(function() 
     1701            //DWR 2011/30/8 
     1702            //Actually assign the hoverTimeout value so we can properly kill the timer. 
     1703            this.hoverTimeout = setTimeout(function() 
    17021704                      { 
    17031705                        thisObj.hoverData(thisObj, event) 
     
    18891891      //var url = OpenLayers.ProxyHost + dataUrl + feature.attributes.staDataFile; 
    18901892      var url = dataUrl + feature.attributes.staDataFile; 
     1893       
    18911894      Ext.Ajax.request({ 
    18921895        autoAbort: true, 
     
    19781981  clearPopup : function()  
    19791982  { 
     1983    if(this.hoverTimeout !== undefined) 
     1984    { 
     1985      clearTimeout(this.hoverTimeout); 
     1986      this.hoverTimeout = undefined; 
     1987    }   
    19801988    if(this.toolTip !== undefined) 
    19811989    {