OpenLayers OpenLayers

Changeset 6649

Show
Ignore:
Timestamp:
03/28/08 01:09:48 (10 months ago)
Author:
euzuro
Message:

never mind. back that out. didnt work. (should, but didnt)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/pop/lib/OpenLayers/Popup/Anchored.js

    r6648 r6649  
    101101    }, 
    102102     
     103    /**  
     104     * Method: draw 
     105     *  
     106     * Parameters: 
     107     * px - {<OpenLayers.Pixel>} 
     108     *  
     109     * Returns:  
     110     * {DOMElement} Reference to a div that contains the drawn popup. 
     111     */ 
     112    draw: function(px) { 
     113        if (px == null) { 
     114            if ((this.lonlat != null) && (this.map != null)) { 
     115                px = this.map.getLayerPxFromLonLat(this.lonlat); 
     116            } 
     117        } 
     118         
     119        //calculate relative position 
     120        this.relativePosition = this.calculateRelativePosition(px); 
     121         
     122        return OpenLayers.Popup.prototype.draw.apply(this, [px]); 
     123    }, 
     124 
     125 
    103126    /** 
    104127     * Method: setSize