OpenLayers OpenLayers

Changeset 6702

Show
Ignore:
Timestamp:
03/29/08 12:18:26 (10 months ago)
Author:
euzuro
Message:

keep a global 'currentPopup' to keep track of the latest popup, in case you want to do anything from the firebug console line

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/pop/examples/popupMatrix.html

    r6675 r6702  
    1818        var map; 
    1919        var layer, markers; 
     20         
     21        var currentPopup; 
    2022         
    2123        var samplePopupContentsHTML = "Old man down, way down down, down by the docks of the city.<br>Blind and dirty, asked me for a dime, a dime for a cup of coffee.<br>I got no dime but I got some time to hear his story.<br>My name is August West, and I love my Pearly Baker best more than my wine.<br>More than my wine - more than my maker, though he's no friend of mine.<br><br>Everyone said, I'd come to no good, I knew I would Pearly, believe them.<br>Half of my life, I spent doin' time for some other fucker's crime,<br>The other half found me stumbling 'round drunk on Burgundy wine.<br><br>But I'll get back on my feet again someday,<br>The good Lord willin', if He says I may.<br>I know that the life i'm livin's no good,<br>I'll get a new start, live the life I should.<br>I'll get up and fly away, I'll get up and fly away, fly away.<br><br>Pearly's been true, true to me, true to my dyin' day he said,<br>I said to him, I said to him, I'm sure she's been.<br>I said to him, I'm sure she's been tru to you.<br><br>Got up and wandered, wandered downtown, nowhere to go but just hang around.<br>I've got a girl, named Bonnie Lee, I know that girl's been true to me.<br>I know she's been, I'm sure she's been true to me.<br><br>"; 
     
    854856                } else { 
    855857                    this.popup.toggle(); 
    856                    } 
     858                } 
     859                currentPopup = this.popup; 
    857860                OpenLayers.Event.stop(evt); 
    858861            };