OpenLayers OpenLayers

Changeset 6648

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

no reason for this function to be overridden. the relativePosition property is calculated when it is needed, in moveTo()

Files:

Legend:

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

    r6597 r6648  
    5454    }, 
    5555 
    56     /**  
    57      * Method: draw 
    58      *  
    59      * Parameters: 
    60      * px - {<OpenLayers.Pixel>} 
    61      *  
    62      * Returns:  
    63      * {DOMElement} Reference to a div that contains the drawn popup. 
    64      */ 
    65     draw: function(px) { 
    66         if (px == null) { 
    67             if ((this.lonlat != null) && (this.map != null)) { 
    68                 px = this.map.getLayerPxFromLonLat(this.lonlat); 
    69             } 
    70         } 
    71          
    72         //calculate relative position 
    73         this.relativePosition = this.calculateRelativePosition(px); 
    74          
    75         return OpenLayers.Popup.prototype.draw.apply(this, [px]); 
    76     }, 
    77      
    7856    /**  
    7957     * Method: calculateRelativePosition