We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ad86f2 + 5b93d08 commit a0a8cedCopy full SHA for a0a8ced
src/angular-google-maps.js
@@ -348,7 +348,7 @@
348
(!angular.isDefined(scope.center.latitude) ||
349
!angular.isDefined(scope.center.longitude))) {
350
351
- $log.error("angular-google-maps: ould not find a valid center property");
+ $log.error("angular-google-maps: could not find a valid center property");
352
return;
353
}
354
@@ -503,7 +503,7 @@
503
504
// Fit map when there are more than one marker.
505
// This will change the map center coordinates
506
- if (attrs.fit == "true" && newValue.length > 1) {
+ if (attrs.fit == "true" && newValue && newValue.length > 1) {
507
_m.fit();
508
509
});
0 commit comments