OpenLayers OpenLayers

Changeset 6448

Show
Ignore:
Timestamp:
03/06/08 15:38:05 (9 months ago)
Author:
pagameba
Message:

merge with trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Control.js

    r6439 r6448  
    179179    destroy: function () { 
    180180        if(this.events) { 
     181            if(this.eventListeners) { 
     182                this.events.un(this.eventListeners); 
     183            } 
    181184            this.events.destroy(); 
    182185            this.events = null; 
    183186        } 
     187        this.eventListeners = null; 
     188 
    184189        // eliminate circular references 
    185190        if (this.handler) { 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Control/Panel.js

    r6324 r6448  
    149149        } 
    150150        for (var i = 0; i < this.controls.length; i++) { 
    151             if (this.controls[i] == control) { 
    152                 control.activate(); 
    153             } else { 
     151            if (this.controls[i] != control) { 
    154152                if (this.controls[i].type != OpenLayers.Control.TYPE_TOGGLE) { 
    155153                    this.controls[i].deactivate(); 
     
    157155            } 
    158156        } 
     157        control.activate(); 
    159158    }, 
    160159 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Geometry/Rectangle.js

    r5822 r6448  
    99/** 
    1010 * Class: OpenLayers.Geometry.Rectangle 
    11  * A Rectangle is a simple geometry. It is specified by a point (x and y)  
    12  *     and dimensions (width and height), all of which are directly accessible  
    13  *     as properties. 
     11 * This class is *not supported*, and probably isn't what you're looking for. 
     12 *     Instead, most users probably want something like: 
     13 *     (code) 
     14 *     var poly = new OpenLayers.Bounds(0,0,10,10).toGeometry(); 
     15 *     (end) 
     16 *     This will create a rectangular Polygon geometry.  
    1417 *  
    1518 * Inherits: 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Layer.js

    r6439 r6448  
    330330 
    331331        if (this.events) { 
     332            if(this.eventListeners) { 
     333                this.events.un(this.eventListeners); 
     334            } 
    332335            this.events.destroy(); 
    333336        } 
     337        this.eventListeners = null; 
    334338        this.events = null; 
    335339    }, 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Layer/Google.js

    r6324 r6448  
    8181     *  
    8282     * Parameters: 
    83      * name - {String} 
    84      * options - {Object} 
     83     * name - {String} A name for the layer. 
     84     * options - {Object} An optional object whose properties will be set 
     85     *     on the layer. 
    8586     */ 
    8687    initialize: function(name, options) { 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Layer/Text.js

    r5832 r6448  
    174174            if (feature.style.graphicXOffset  
    175175                && feature.style.graphicYOffset) { 
    176                 iconOffset = new OpenLayers.Size
     176                iconOffset = new OpenLayers.Pixel
    177177                    feature.style.graphicXOffset,  
    178178                    feature.style.graphicYOffset); 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Map.js

    r6439 r6448  
    546546        this.viewPortDiv = null; 
    547547 
     548        if(this.eventListeners) { 
     549            this.events.un(this.eventListeners); 
     550            this.eventListeners = null; 
     551        } 
    548552        this.events.destroy(); 
    549553        this.events = null; 
     
    13681372                    }, this), 
    13691373                    eachStep: OpenLayers.Function.bind(function(lonlat) { 
    1370                         var lonlat = new OpenLayers.LonLat(lonlat.lon, lonlat.lat); 
     1374                        lonlat = new OpenLayers.LonLat(lonlat.lon, lonlat.lat); 
    13711375                        this.moveTo(lonlat, this.zoom, { 
    13721376                            'dragging': true, 
     
    13751379                    }, this), 
    13761380                    done: OpenLayers.Function.bind(function(lonlat) { 
    1377                         var lonlat = new OpenLayers.LonLat(lonlat.lon, lonlat.lat); 
     1381                        lonlat = new OpenLayers.LonLat(lonlat.lon, lonlat.lat); 
    13781382                        this.moveTo(lonlat, this.zoom, { 
    13791383                            'noEvent': true