remove 'projection' member from Layer. keep single instance in map

git-svn-id: http://svn.openlayers.org/trunk/openlayers@496 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-01 12:30:46 +00:00
parent 6cfe3e8293
commit e0aa067cb6
3 changed files with 5 additions and 5 deletions

View File

@@ -130,7 +130,6 @@ OpenLayers.Map.prototype = {
*/
addLayer: function (layer, zIndex) {
layer.map = this;
layer.projection = this.projection;
layer.div.style.overflow = "";
if (zIndex) {
layer.div.style.zIndex = zIndex;
@@ -387,6 +386,10 @@ OpenLayers.Map.prototype = {
this.events.triggerEvent("moveend");
},
/**
* ZOOM TO BOUNDS FUNCTION
*/
moveToNewExtent: function (zoomChanged) {
if (zoomChanged != null) { // reset the layerContainerDiv's location
this.layerContainerDiv.style.left = "0px";