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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user