Add scoping term. Thanks to tschaub, closes #261 .

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1441 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-09-14 11:39:32 +00:00
parent a210e16479
commit c5afbacc93

View File

@@ -788,7 +788,7 @@ OpenLayers.Map.prototype = {
* @type int
*/
getZoomForExtent: function (bounds) {
zoom = null;
var zoom = null;
if (this.baseLayer != null) {
zoom = this.baseLayer.getZoomForExtent(bounds);
}
@@ -803,7 +803,7 @@ OpenLayers.Map.prototype = {
* @type int
*/
getZoomForResolution: function(resolution) {
zoom = null;
var zoom = null;
if (this.baseLayer != null) {
zoom = this.baseLayer.getZoomForResolution(resolution);
}