{"action":"created","issue":{"url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/59","repository_url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps","labels_url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/59/comments","events_url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/59/events","html_url":"https://github.com/allenhwkim/angularjs-google-maps/issues/59","id":38653607,"number":59,"title":"Problem on second render. Map is partically visible. Everything else just gray area","user":{"login":"askucher","id":4496793,"avatar_url":"https://avatars.githubusercontent.com/u/4496793?v=3","gravatar_id":"","url":"https://api.github.com/users/askucher","html_url":"https://github.com/askucher","followers_url":"https://api.github.com/users/askucher/followers","following_url":"https://api.github.com/users/askucher/following{/other_user}","gists_url":"https://api.github.com/users/askucher/gists{/gist_id}","starred_url":"https://api.github.com/users/askucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/askucher/subscriptions","organizations_url":"https://api.github.com/users/askucher/orgs","repos_url":"https://api.github.com/users/askucher/repos","events_url":"https://api.github.com/users/askucher/events{/privacy}","received_events_url":"https://api.github.com/users/askucher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-07-24T17:16:32Z","updated_at":"2016-03-09T13:13:09Z","closed_at":"2014-08-11T21:39:51Z","body":"Quickfix:\r\n\r\n```javascript\r\n...\r\nngMap.directives.infoWindow.$inject = [\"Attr2Options\"], ngMap.directives.map = function(e, t, n, r) {\r\n    var o = e;\r\n    return {\r\n        restrict: \"AE\",\r\n        controller: ngMap.directives.MapController,\r\n        link: function(e, t, i, a) {\r\n            e.google = google;\r\n            var s = document.createElement(\"div\");\r\n\r\n            s.style.width = \"100%\", s.style.height = \"100%\", t.prepend(s), e.map = new google.maps.Map(s, {});\r\n//START   \r\n         var timeout =\r\n                setTimeout(function() {\r\n                    clearTimeout(timeout);\r\n                    google.maps.event.trigger(e.map, 'resize')\r\n\r\n                }, 1000);\r\n//END\r\n            var c = o.filter(i),\r\n                p = o.getOptions(c, e),\r\n                l = o.getControlOptions(c),\r\n                g = o.getEvents(e, c),\r\n                v = angular.extend(p, l);\r\n...\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/comments/194291976","html_url":"https://github.com/allenhwkim/angularjs-google-maps/issues/59#issuecomment-194291976","issue_url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/59","id":194291976,"user":{"login":"salefission","id":14346801,"avatar_url":"https://avatars.githubusercontent.com/u/14346801?v=3","gravatar_id":"","url":"https://api.github.com/users/salefission","html_url":"https://github.com/salefission","followers_url":"https://api.github.com/users/salefission/followers","following_url":"https://api.github.com/users/salefission/following{/other_user}","gists_url":"https://api.github.com/users/salefission/gists{/gist_id}","starred_url":"https://api.github.com/users/salefission/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salefission/subscriptions","organizations_url":"https://api.github.com/users/salefission/orgs","repos_url":"https://api.github.com/users/salefission/repos","events_url":"https://api.github.com/users/salefission/events{/privacy}","received_events_url":"https://api.github.com/users/salefission/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T13:13:09Z","updated_at":"2016-03-09T13:13:09Z","body":"I solved the problem by adding\r\n$scope.render = false;\r\n$timeout(function () {\r\n        $scope.render = true;\r\n}, 1000);\r\nin the controller and binding ng-if=\"render\" in the html. Nothing else worked for me."}}