Ng-show/ng-hide performance problem with Google Map

This is discussed over here and the fix in there worked for me.