OpenLayers OpenLayers

Changeset 7012

Show
Ignore:
Timestamp:
04/25/08 17:39:53 (9 months ago)
Author:
edgemaster
Message:

Define newExtent outside of the conditional

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/edgemaster/openlayers/lib/OpenLayers/Map.js

    r6972 r7012  
    10061006                        : center; 
    10071007                         
     1008                    var newExtent = oldExtent.clone(); 
     1009                         
    10081010                    // Convert centre point to new layer projection - so we can 
    10091011                    // maintain roughly the same view 
     
    10111013                    if(!oldProjection.equals(newProjection)) { 
    10121014                        newCenter.transform(oldProjection, newProjection); 
    1013                         newExtent = oldExtent.clone().transform(oldProjection, newProjection); 
     1015                        newExtent.transform(oldProjection, newProjection); 
    10141016                         
    10151017                        // Also convert vector layers - assuming they are in the