FixedZoomLevels subclassese don't propertly set min/max resolution, so
calculateInRange always returns false, so the layers can never be displayed (due to recent code): Fix calculateInRange by setting min/max res. r=tschaub, (Closes #1457) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6572 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -110,7 +110,9 @@ OpenLayers.Layer.FixedZoomLevels = OpenLayers.Class({
|
||||
for(var i= this.minZoomLevel; i <= this.maxZoomLevel; i++) {
|
||||
this.resolutions[resolutionsIndex++] = this.RESOLUTIONS[i];
|
||||
}
|
||||
}
|
||||
this.maxResolution = this.resolutions[0];
|
||||
this.minResolution = this.resolutions[this.resolutions.length - 1];
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user