OpenLayers OpenLayers

Changeset 6680

Show
Ignore:
Timestamp:
03/28/08 21:38:16 (10 months ago)
Author:
euzuro
Message:

remove extra spaces.

Files:

Legend:

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

    r6679 r6680  
    1010 * Class: OpenLayers.Popup.Framed 
    1111 *  
    12  * Inherits from:  
     12 * Inherits from: 
    1313 *  - <OpenLayers.Popup.Anchored> 
    1414 */ 
    15 OpenLayers.Popup.Framed =  
     15OpenLayers.Popup.Framed = 
    1616  OpenLayers.Class(OpenLayers.Popup.Anchored, { 
    17        
     17 
    1818    /** 
    1919     * Property: imageSrc 
     
    2121     */ 
    2222    imageSrc: null, 
    23      
     23 
    2424    /** 
    2525     * Property: imageSize 
     
    3838     */ 
    3939    isAlphaImage: false, 
    40      
     40 
    4141    /** 
    4242     * Property: positionBlocks 
     
    5353     */ 
    5454    positionBlocks: null, 
    55      
     55 
    5656    /** 
    5757     * Property: blocks 
     
    7979     */ 
    8080    fixedRelativePosition: false, 
    81      
     81 
    8282    /**  
    8383     * Constructor: OpenLayers.Popup.Framed 
     
    106106 
    107107        this.contentDiv.style.position = "absolute"; 
    108          
     108 
    109109        this.contentDiv.style.zIndex = 1; 
    110110        if (closeBox) { 
    111111            this.closeDiv.style.zIndex = 1; 
    112112        } 
    113          
     113 
    114114        this.groupDiv.style.position = "absolute"; 
    115115        this.groupDiv.style.top = "0px"; 
     
    126126        this.imageSize = null; 
    127127        this.fixedRelativePosition = false; 
    128      
     128 
    129129        this.positionBlocks = null; 
    130      
     130 
    131131        //remove our blocks 
    132132        for(var i = 0; i < this.blocks.length; i++) { 
    133133            var block = this.blocks[j]; 
    134              
     134 
    135135            if (block.image) { 
    136136                this.groupDiv.removeChild(block.image); 
    137137            } 
    138138            block.image = null; 
    139                                  
     139 
    140140            if (block.div) { 
    141141                this.groupDiv.removeChild(block.div); 
    142142            } 
    143             block.div = null;                                         
     143            block.div = null; 
    144144        } 
    145145        this.blocks = null; 
    146146 
    147         OpenLayers.Popup.Anchored.prototype.destroy.apply(this, arguments);         
     147        OpenLayers.Popup.Anchored.prototype.destroy.apply(this, arguments); 
    148148    }, 
    149149 
     
    158158    setSize:function(size) {  
    159159        OpenLayers.Popup.Anchored.prototype.setSize.apply(this, arguments); 
    160          
     160 
    161161        this.updateBlocks(); 
    162162    }, 
    163      
     163 
    164164    /**  
    165165     * Method: calculateRelativePosition 
     
    186186        return relativePosition; 
    187187    }, 
    188      
     188 
    189189    /** 
    190190     * Method: updateRelativePosition 
     
    194194        //update the padding 
    195195        this.padding = this.positionBlocks[this.relativePosition].padding; 
    196          
     196 
    197197        //update the position of our close box to new padding 
    198198        if (this.closeDiv) { 
     
    205205            this.closeDiv.style.top = contentDivPadding.top +  
    206206                                      this.padding.top + "px"; 
    207         }         
     207        } 
    208208 
    209209        this.updateBlocks(); 
     
    224224            this, arguments 
    225225        ); 
    226                                                                      
     226 
    227227        newPx = newPx.offset(this.positionBlocks[this.relativePosition].offset); 
    228228 
    229         return newPx;    
     229        return newPx; 
    230230    }, 
    231231 
     
    251251                (this.isAlphaImage) ? OpenLayers.Util.createAlphaImageDiv 
    252252                                    : OpenLayers.Util.createImage; 
    253                  
     253 
    254254            block.image = imageCreator(imgId,  
    255255                null, this.imageSize, this.imageSrc,  
     
    261261        } 
    262262    }, 
    263      
     263 
    264264    /** 
    265265     * Method: updateBlocks 
     
    296296            var h = (isNaN(positionBlock.size.h)) ? this.size.h - (b + t)  
    297297                                                  : positionBlock.size.h; 
    298                   
     298 
    299299            block.div.style.width = w + 'px'; 
    300300            block.div.style.height = h + 'px'; 
     
    304304            block.div.style.right = (r != null) ? r + 'px' : '';             
    305305            block.div.style.top = (t != null) ? t + 'px' : ''; 
    306              
     306 
    307307            block.image.style.left = positionBlock.position.x + 'px'; 
    308308            block.image.style.top = positionBlock.position.y + 'px'; 
     
    320320        // an image -- changing the background color makes no sense.  
    321321    }, 
    322      
     322 
    323323    /** 
    324324     * APIMethod: setBorder 
     
    340340        // to a framed popup 
    341341    }, 
    342      
     342 
    343343    CLASS_NAME: "OpenLayers.Popup.Framed" 
    344344}); 
  • sandbox/euzuro/pop/lib/OpenLayers/Popup/FramedCloud.js

    r6672 r6680  
    2222     */ 
    2323    autoSize: true, 
    24      
     24 
    2525    /** 
    2626     * APIProperty: panMapIfOutOfView 
     
    2828     */ 
    2929    panMapIfOutOfView: true, 
    30      
     30 
    3131    /** 
    3232     * Property: imageSrc 
     
    3434     */ 
    3535    imageSrc: OpenLayers.Util.getImagesLocation() + 'cloud-popup-relative.png', 
    36      
     36 
    3737    /** 
    3838     * APIProperty: imageSize 
     
    4040     */ 
    4141    imageSize: new OpenLayers.Size(676, 736), 
    42      
     42 
    4343    /**  
    4444     * APIProperty: fixedRelativePosition 
     
    4646     */ 
    4747    fixedRelativePosition: false, 
    48      
     48 
    4949    /** 
    5050     * APIProperty: isAlphaImage 
     
    5353     */ 
    5454    isAlphaImage: false, 
    55      
     55 
    5656    /** 
    5757     * Property: positionBlocks 
     
    191191     */ 
    192192    minSize: new OpenLayers.Size(105, 10), 
    193      
     193 
    194194    /** 
    195195     * APIProperty: maxSize 
     
    197197     */ 
    198198    maxSize: new OpenLayers.Size(600, 660), 
    199      
     199 
    200200    /**  
    201201     * Constructor: OpenLayers.Popup.FramedCloud