{"action":"created","issue":{"url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/393","repository_url":"https://api.github.com/repos/googlemaps/v3-utility-library","labels_url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/393/comments","events_url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/393/events","html_url":"https://github.com/googlemaps/v3-utility-library/issues/393","id":296962253,"number":393,"title":"MarkerWithLabel: Cannot read property 'removeChild' of null","user":{"login":"awiprayitno","id":4371692,"avatar_url":"https://avatars3.githubusercontent.com/u/4371692?v=4","gravatar_id":"","url":"https://api.github.com/users/awiprayitno","html_url":"https://github.com/awiprayitno","followers_url":"https://api.github.com/users/awiprayitno/followers","following_url":"https://api.github.com/users/awiprayitno/following{/other_user}","gists_url":"https://api.github.com/users/awiprayitno/gists{/gist_id}","starred_url":"https://api.github.com/users/awiprayitno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awiprayitno/subscriptions","organizations_url":"https://api.github.com/users/awiprayitno/orgs","repos_url":"https://api.github.com/users/awiprayitno/repos","events_url":"https://api.github.com/users/awiprayitno/events{/privacy}","received_events_url":"https://api.github.com/users/awiprayitno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-14T03:12:32Z","updated_at":"2018-02-14T18:18:53Z","closed_at":null,"author_association":"NONE","body":"In combination with MarkerClusterer,  error happened when MarkerClusterer remove Marker\r\nError was:\r\n`\r\nUncaught TypeError: Cannot read property 'removeChild' of null\r\n    at MarkerLabel_.onRemove (eval at <anonymous> (markerwithlabel_packed.js:1), <anonymous>:1:5570)\r\n`\r\nNote that this error happened both on the packed and non packed version.\r\n\r\nSolution:\r\nI added two ifs in the following (line 307), which fixed this.\r\n`\r\nMarkerLabel_.prototype.onRemove = function () {\r\n  var i;\r\n  if (this.labelDiv_.parentNode) {\r\n        this.labelDiv_.parentNode.removeChild(this.labelDiv_);\r\n  }\r\n  // Remove event listeners:\r\n  if (this.listeners_) {\r\n    for (i = 0; i < this.listeners_.length; i++) {\r\n      google.maps.event.removeListener(this.listeners_[i]);\r\n    }\r\n  }\r\n};\r\n`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/comments/365697559","html_url":"https://github.com/googlemaps/v3-utility-library/issues/393#issuecomment-365697559","issue_url":"https://api.github.com/repos/googlemaps/v3-utility-library/issues/393","id":365697559,"user":{"login":"EltonFaust","id":3812283,"avatar_url":"https://avatars0.githubusercontent.com/u/3812283?v=4","gravatar_id":"","url":"https://api.github.com/users/EltonFaust","html_url":"https://github.com/EltonFaust","followers_url":"https://api.github.com/users/EltonFaust/followers","following_url":"https://api.github.com/users/EltonFaust/following{/other_user}","gists_url":"https://api.github.com/users/EltonFaust/gists{/gist_id}","starred_url":"https://api.github.com/users/EltonFaust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EltonFaust/subscriptions","organizations_url":"https://api.github.com/users/EltonFaust/orgs","repos_url":"https://api.github.com/users/EltonFaust/repos","events_url":"https://api.github.com/users/EltonFaust/events{/privacy}","received_events_url":"https://api.github.com/users/EltonFaust/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T18:18:52Z","updated_at":"2018-02-14T18:18:52Z","author_association":"NONE","body":"Something changed in this new google maps js, version 3.32.1a, if you specify an older version like 3.31 (https://maps.googleapis.com/maps/api/js?v=3.31&key=xxx) this problem doesnt happens..."}}
{"actor":{"display_login":"EltonFaust"}}