Changeset 4048
- Timestamp:
- 08/27/07 08:59:55 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/thliese/openlayers/lib/OpenLayers/Layer/Map24.js
r4030 r4048 228 228 */ 229 229 getZoomForExtent: function (bounds) { 230 var res = (bounds.right - bounds.left) / this.canvasWidth; 230 var res = Math.max( 231 Math.abs(bounds.right - bounds.left) / this.canvasWidth, 232 Math.abs(bounds.top - bounds.bottom) / this.canvasHeight 233 ); 231 234 232 235 // find the corresponding zoom level
