set defaults correctly

git-svn-id: http://svn.openlayers.org/trunk/openlayers@832 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-29 23:24:48 +00:00
parent 4fe8729895
commit afeb15b3e7

View File

@@ -22,6 +22,15 @@ OpenLayers.Layer.Google.prototype = Object.extend( new OpenLayers.Layer(), {
/** @type Boolean */
dragging:false,
// OPTIONS
/** @type int */
minZoomLevel: -1,
/** @type int */
maxZoomLevel: 16,
/**
* @constructor
*
@@ -30,12 +39,6 @@ OpenLayers.Layer.Google.prototype = Object.extend( new OpenLayers.Layer(), {
initialize: function(name, options) {
OpenLayers.Layer.prototype.initialize.apply(this, arguments);
if (this.minZoomLevel == null) {
this.minZoomLevel = -1;
}
if (this.maxZoomLevel == null) {
this.maxZoomLevel = 16;
}
if (this.maxExtent == null) {
this.maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90);
}