set defaults correctly
git-svn-id: http://svn.openlayers.org/trunk/openlayers@832 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -22,6 +22,15 @@ OpenLayers.Layer.Google.prototype = Object.extend( new OpenLayers.Layer(), {
|
|||||||
/** @type Boolean */
|
/** @type Boolean */
|
||||||
dragging:false,
|
dragging:false,
|
||||||
|
|
||||||
|
// OPTIONS
|
||||||
|
|
||||||
|
/** @type int */
|
||||||
|
minZoomLevel: -1,
|
||||||
|
|
||||||
|
/** @type int */
|
||||||
|
maxZoomLevel: 16,
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
*
|
*
|
||||||
@@ -30,12 +39,6 @@ OpenLayers.Layer.Google.prototype = Object.extend( new OpenLayers.Layer(), {
|
|||||||
initialize: function(name, options) {
|
initialize: function(name, options) {
|
||||||
OpenLayers.Layer.prototype.initialize.apply(this, arguments);
|
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) {
|
if (this.maxExtent == null) {
|
||||||
this.maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90);
|
this.maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user