Changeset 1355
- Timestamp:
- 08/24/06 10:08:18 (2 years ago)
- Files:
-
- branches/openlayers/2.0/lib/OpenLayers/Map.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/2.0/lib/OpenLayers/Map.js
r1331 r1355 372 372 var zoom = this.getZoom(); 373 373 this.zoom = null; 374 if (zoom > this.baseLayer.numZoomLevels - 1) { 375 zoom = this.baseLayer.numZoomLevels - 1; 376 } 374 377 this.setCenter(center, zoom); 378 375 379 } 376 377 380 if ((noEvent == null) || (noEvent == false)) { 378 381 this.events.triggerEvent("changebaselayer"); … … 563 566 */ 564 567 setCenter: function (lonlat, zoom, minor) { 565 566 568 var zoomChanged = (this.isValidZoomLevel(zoom)) && 567 569 (zoom != this.getZoom()); … … 600 602 } 601 603 } 602 604 603 605 //send the move call to the baselayer and all the overlays 604 606 var bounds = this.getExtent();
