Created
November 27, 2015 18:50
-
-
Save henriquemenezes/6eb1d89dcf9839bcd97c to your computer and use it in GitHub Desktop.
AngularJS force update images from google maps (ngMap)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.map = null; | |
$scope.$on('mapInitialized', function(event, map) { | |
$scope.map = map; | |
}); | |
$scope.$on('cfpLoadingBar:completed', function () { | |
$timeout(function() { | |
google.maps.event.trigger($scope.map,'resize') | |
}, 1000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment