Changeset 28
- Timestamp:
- 05/13/06 10:25:28 (3 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Map.js
r23 r28 226 226 } 227 227 228 this.moveToNewExtent( );228 this.moveToNewExtent(zoomChanged); 229 229 }, 230 230 … … 245 245 */ 246 246 zoomIn: function() { 247 if (this.zoom != null ) {247 if (this.zoom != null && this.zoom <= this.getZoomLevels()) { 248 248 this.zoom += 1; 249 249 this.moveToNewExtent(true); … … 257 257 */ 258 258 zoomTo: function(zoom) { 259 if (zoom >= 0 && zoom <= this.getZoomLevels()) { 259 260 this.zoom = zoom; 260 261 this.moveToNewExtent(true); 262 } 261 263 }, 262 264
