Changeset 6448
- Timestamp:
- 03/06/08 15:38:05 (9 months ago)
- Files:
-
- sandbox/pagameba/transition-resize/examples/events.html (copied) (copied from trunk/openlayers/examples/events.html)
- sandbox/pagameba/transition-resize/lib/OpenLayers/Control.js (modified) (1 diff)
- sandbox/pagameba/transition-resize/lib/OpenLayers/Control/Panel.js (modified) (2 diffs)
- sandbox/pagameba/transition-resize/lib/OpenLayers/Geometry/Rectangle.js (modified) (1 diff)
- sandbox/pagameba/transition-resize/lib/OpenLayers/Layer.js (modified) (1 diff)
- sandbox/pagameba/transition-resize/lib/OpenLayers/Layer/Google.js (modified) (1 diff)
- sandbox/pagameba/transition-resize/lib/OpenLayers/Layer/Text.js (modified) (1 diff)
- sandbox/pagameba/transition-resize/lib/OpenLayers/Map.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/pagameba/transition-resize/lib/OpenLayers/Control.js
r6439 r6448 179 179 destroy: function () { 180 180 if(this.events) { 181 if(this.eventListeners) { 182 this.events.un(this.eventListeners); 183 } 181 184 this.events.destroy(); 182 185 this.events = null; 183 186 } 187 this.eventListeners = null; 188 184 189 // eliminate circular references 185 190 if (this.handler) { sandbox/pagameba/transition-resize/lib/OpenLayers/Control/Panel.js
r6324 r6448 149 149 } 150 150 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) { 154 152 if (this.controls[i].type != OpenLayers.Control.TYPE_TOGGLE) { 155 153 this.controls[i].deactivate(); … … 157 155 } 158 156 } 157 control.activate(); 159 158 }, 160 159 sandbox/pagameba/transition-resize/lib/OpenLayers/Geometry/Rectangle.js
r5822 r6448 9 9 /** 10 10 * 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. 14 17 * 15 18 * Inherits: sandbox/pagameba/transition-resize/lib/OpenLayers/Layer.js
r6439 r6448 330 330 331 331 if (this.events) { 332 if(this.eventListeners) { 333 this.events.un(this.eventListeners); 334 } 332 335 this.events.destroy(); 333 336 } 337 this.eventListeners = null; 334 338 this.events = null; 335 339 }, sandbox/pagameba/transition-resize/lib/OpenLayers/Layer/Google.js
r6324 r6448 81 81 * 82 82 * 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. 85 86 */ 86 87 initialize: function(name, options) { sandbox/pagameba/transition-resize/lib/OpenLayers/Layer/Text.js
r5832 r6448 174 174 if (feature.style.graphicXOffset 175 175 && feature.style.graphicYOffset) { 176 iconOffset = new OpenLayers. Size(176 iconOffset = new OpenLayers.Pixel( 177 177 feature.style.graphicXOffset, 178 178 feature.style.graphicYOffset); sandbox/pagameba/transition-resize/lib/OpenLayers/Map.js
r6439 r6448 546 546 this.viewPortDiv = null; 547 547 548 if(this.eventListeners) { 549 this.events.un(this.eventListeners); 550 this.eventListeners = null; 551 } 548 552 this.events.destroy(); 549 553 this.events = null; … … 1368 1372 }, this), 1369 1373 eachStep: OpenLayers.Function.bind(function(lonlat) { 1370 varlonlat = new OpenLayers.LonLat(lonlat.lon, lonlat.lat);1374 lonlat = new OpenLayers.LonLat(lonlat.lon, lonlat.lat); 1371 1375 this.moveTo(lonlat, this.zoom, { 1372 1376 'dragging': true, … … 1375 1379 }, this), 1376 1380 done: OpenLayers.Function.bind(function(lonlat) { 1377 varlonlat = new OpenLayers.LonLat(lonlat.lon, lonlat.lat);1381 lonlat = new OpenLayers.LonLat(lonlat.lon, lonlat.lat); 1378 1382 this.moveTo(lonlat, this.zoom, { 1379 1383 'noEvent': true
