This commit is contained in:
Marc Jansen
2012-06-20 11:19:48 +02:00
2 changed files with 291 additions and 291 deletions
+3 -3
View File
@@ -26,13 +26,13 @@ ol.Map = function() {
* @private * @private
* @type {ol.Loc} * @type {ol.Loc}
*/ */
this.center_ = new ol.Loc(0, 0); this.center_ = null;
/** /**
* @private * @private
* @type {number} * @type {number}
*/ */
this.zoom_ = 0; this.zoom_ = undefined;
/** /**
* @private * @private
@@ -135,7 +135,7 @@ ol.Map.prototype.getMaxExtent = function() {
if (goog.isDefAndNotNull(this.maxExtent_)) { if (goog.isDefAndNotNull(this.maxExtent_)) {
return this.maxExtent_; return this.maxExtent_;
} else { } else {
var extent = this.projection.getMaxExtent(); var extent = this.getProjection().getExtent();
if (goog.isDefAndNotNull(extent)) { if (goog.isDefAndNotNull(extent)) {
return extent; return extent;
} else { } else {