Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
@@ -337,3 +337,3 @@ import { Component, ElementRef, EventEmitter, Input, Output } from '@angular/core'; | ||
AgmMap.prototype._updateBounds = function (bounds) { | ||
if (this._isLatLngBoundsLiteral(bounds)) { | ||
if (this._isLatLngBoundsLiteral(bounds) && google && google.maps) { | ||
var newBounds = google.maps.LatLngBounds(); | ||
@@ -343,5 +343,2 @@ newBounds.union(bounds); | ||
} | ||
if (bounds.isEmpty()) { | ||
return; | ||
} | ||
if (this.usePanning) { | ||
@@ -354,3 +351,3 @@ this._mapsWrapper.panToBounds(bounds); | ||
AgmMap.prototype._isLatLngBoundsLiteral = function (bounds) { | ||
return bounds.extend === undefined; | ||
return bounds != null && bounds.extend === undefined; | ||
}; | ||
@@ -357,0 +354,0 @@ AgmMap.prototype._handleMapCenterChange = function () { |
{ | ||
"name": "@agm/core", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"description": "Angular components for Google Maps", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
703378
10331