The event handler function in the following code lives "outside of Angular's world", which means the $digest loop will not be triggered and changes till not be reflected in the DOM:
google.maps.event.addListener(myMarker, 'click', function(e){
$scope.toggle();
});
You need to use $apply:
$apply() is used to execute an expression in angular from outside of the angular framework. (For example from browser DOM events, setTimeout, XHR or third party libraries). Because we are calling into the angular framework we need to perform proper scope life cycle of exception handling, executing watches.
Example:
google.maps.event.addListener(myMarker, 'click', function(e){
$scope.$apply(function () {
$scope.toggle();
});
});