Skip to content

Commit a0a8ced

Browse files
committed
2 parents 6ad86f2 + 5b93d08 commit a0a8ced

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/angular-google-maps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
(!angular.isDefined(scope.center.latitude) ||
349349
!angular.isDefined(scope.center.longitude))) {
350350

351-
$log.error("angular-google-maps: ould not find a valid center property");
351+
$log.error("angular-google-maps: could not find a valid center property");
352352
return;
353353
}
354354

@@ -503,7 +503,7 @@
503503

504504
// Fit map when there are more than one marker.
505505
// This will change the map center coordinates
506-
if (attrs.fit == "true" && newValue.length > 1) {
506+
if (attrs.fit == "true" && newValue && newValue.length > 1) {
507507
_m.fit();
508508
}
509509
});

0 commit comments

Comments
 (0)