OpenLayers OpenLayers

Changeset 6734

Show
Ignore:
Timestamp:
03/31/08 10:17:58 (9 months ago)
Author:
crschmidt
Message:

Calculating the FramedCloud path at load time leads to not respecting the
ImgPath variable if it is set, because it can't be set before the
OpenLayers.js file is loaded. Move ImgPath calculation into initialize(),
so that it is picked up correctly. Thanks, fvanderbiest! (Closes #1473)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Popup/FramedCloud.js

    r6718 r6734  
    3333     * {String} 
    3434     */ 
    35     imageSrc: OpenLayers.Util.getImagesLocation() + 'cloud-popup-relative.png'
     35    imageSrc: null
    3636 
    3737    /** 
     
    217217        OpenLayers.Popup.Framed.prototype.initialize.apply(this, arguments); 
    218218        this.contentDiv.className = "olFramedCloudPopupContent"; 
     219        this.imageSrc = OpenLayers.Util.getImagesLocation() + 'cloud-popup-relative.png'; 
    219220    }, 
    220221