Changeset 7012
- Timestamp:
- 04/25/08 17:39:53 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/edgemaster/openlayers/lib/OpenLayers/Map.js
r6972 r7012 1006 1006 : center; 1007 1007 1008 var newExtent = oldExtent.clone(); 1009 1008 1010 // Convert centre point to new layer projection - so we can 1009 1011 // maintain roughly the same view … … 1011 1013 if(!oldProjection.equals(newProjection)) { 1012 1014 newCenter.transform(oldProjection, newProjection); 1013 newExtent = oldExtent.clone().transform(oldProjection, newProjection);1015 newExtent.transform(oldProjection, newProjection); 1014 1016 1015 1017 // Also convert vector layers - assuming they are in the
