Changeset 3843
- Timestamp:
- 08/03/07 15:27:39 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Layer/Yahoo.js (modified) (2 diffs)
- trunk/openlayers/tests/Layer/test_Yahoo.html (added)
- trunk/openlayers/tests/list-tests.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer/Yahoo.js
r3787 r3843 60 60 loadMapObject:function() { 61 61 try { //do not crash! 62 this.mapObject = new YMap(this.div, this.type); 62 var size = this.getMapObjectSizeFromOLSize(this.map.getSize()); 63 this.mapObject = new YMap(this.div, this.type, size); 63 64 this.mapObject.disableKeyControls(); 64 65 } catch(e) {} 65 66 }, 67 68 /** 69 * Method: onMapResize 70 * 71 */ 72 onMapResize: function() { 73 try { 74 var size = this.getMapObjectSizeFromOLSize(this.map.getSize()); 75 this.mapObject.resizeTo(size); 76 } catch(e) {} 77 }, 66 78 67 79 … … 337 349 return new YCoordPoint(x, y); 338 350 }, 339 351 352 // Size 353 354 /** 355 * APIMethod: getMapObjectSizeFromOLSize 356 * 357 * Parameters: 358 * olSize - {<OpenLayers.Size>} 359 * 360 * Return: 361 * {Object} MapObject Size from olSize parameter 362 */ 363 getMapObjectSizeFromOLSize: function(olSize) { 364 return new YSize(olSize.w, olSize.h); 365 }, 366 340 367 CLASS_NAME: "OpenLayers.Layer.Yahoo" 341 368 }); trunk/openlayers/tests/list-tests.html
r3807 r3843 52 52 <li>Layer/test_TileCache.html</li> 53 53 <li>Layer/test_Vector.html</li> 54 <li>Layer/test_Yahoo.html</li> 54 55 <li>Layer/test_GML.html</li> 55 56 <li>Layer/test_WrapDateLine.html</li>
