{"action":"created","issue":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1920","repository_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps","labels_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1920/labels{/name}","comments_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1920/comments","events_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1920/events","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1920","id":276993256,"number":1920,"title":"HTMLInfowView breaks after some time","user":{"login":"tryadelion","id":3778474,"avatar_url":"https://avatars0.githubusercontent.com/u/3778474?v=4","gravatar_id":"","url":"https://api.github.com/users/tryadelion","html_url":"https://github.com/tryadelion","followers_url":"https://api.github.com/users/tryadelion/followers","following_url":"https://api.github.com/users/tryadelion/following{/other_user}","gists_url":"https://api.github.com/users/tryadelion/gists{/gist_id}","starred_url":"https://api.github.com/users/tryadelion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tryadelion/subscriptions","organizations_url":"https://api.github.com/users/tryadelion/orgs","repos_url":"https://api.github.com/users/tryadelion/repos","events_url":"https://api.github.com/users/tryadelion/events{/privacy}","received_events_url":"https://api.github.com/users/tryadelion/received_events","type":"User","site_admin":false},"labels":[{"id":63134527,"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/labels/bug","name":"bug","color":"fc2929","default":true},{"id":649987231,"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/labels/fixed","name":"fixed","color":"0052cc","default":false},{"id":99999663,"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/labels/pending%20/%20waiting","name":"pending / waiting","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2017-11-27T11:56:23Z","updated_at":"2017-11-30T21:25:34Z","closed_at":null,"author_association":"NONE","body":"When having a decent quantity of markers ( 50-80), after some time ( i haven't been able to properly replicate it), i get the next error:\r\n\r\n> Uncaught TypeError: Cannot read property 'getMap' of undefined\r\n>     at HTMLInfoWindow.calculate (plugins/cordova-plugin-googlemaps/www/HtmlInfoWindow.js:204)\r\n>     at HTMLInfoWindow.trigger (plugins/cordova-plugin-googlemaps/www/BaseClass.js:67)\r\n>     at HTMLInfoWindow.set (plugins/cordova-plugin-googlemaps/www/BaseClass.js:34)\r\n>     at Marker.callback (plugins/cordova-plugin-googlemaps/www/HtmlInfoWindow.js:32)\r\n>     at Marker.trigger (plugins/cordova-plugin-googlemaps/www/BaseClass.js:67)\r\n>     at Marker.set (plugins/cordova-plugin-googlemaps/www/BaseClass.js:34)\r\n>     at Marker.setIcon (plugins/cordova-plugin-googlemaps/www/Marker.js:242)\r\n>     at s (vendor.js:1)\r\n>     at e.<anonymous> (vendor.js:1)\r\n>     at e.value [as setIcon] (vendor.js:1)\r\n\r\nAs said before,  i haven't been able to replicate, sometimes i go through dozens of markers, sometimes it's when i swipe across the map and pick one, it's not a consistent bug, but rather very random-ish, and i have no idea on how to adress it.\r\nit seems to happen when the infoview loses it's marker, maybe when the map scrolls out of view and the marker is recycled? i have no idea, but the breaking line is:\r\n\r\n>  var map = marker.getMap();\r\n\r\nIs there any way we could track this error? if i was able to manage the error through a callback, i could re-point to the correct marker.  or pass the MAP reference on the infowindow open. no idea.\r\n\r\nIn the meanwhile, could we get a if marker == null { console.error(\"SOME ERROR MESSAGE ABOUT THIS\"); return;  } instead right before that line?  it's never good to have the map JS break up, because after that, **_no other markers or infowindows work unless i recreate the map._**"},"comment":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/comments/348325632","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1920#issuecomment-348325632","issue_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1920","id":348325632,"user":{"login":"wf9a5m75","id":167831,"avatar_url":"https://avatars3.githubusercontent.com/u/167831?v=4","gravatar_id":"","url":"https://api.github.com/users/wf9a5m75","html_url":"https://github.com/wf9a5m75","followers_url":"https://api.github.com/users/wf9a5m75/followers","following_url":"https://api.github.com/users/wf9a5m75/following{/other_user}","gists_url":"https://api.github.com/users/wf9a5m75/gists{/gist_id}","starred_url":"https://api.github.com/users/wf9a5m75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wf9a5m75/subscriptions","organizations_url":"https://api.github.com/users/wf9a5m75/orgs","repos_url":"https://api.github.com/users/wf9a5m75/repos","events_url":"https://api.github.com/users/wf9a5m75/events{/privacy}","received_events_url":"https://api.github.com/users/wf9a5m75/received_events","type":"User","site_admin":false},"created_at":"2017-11-30T21:25:34Z","updated_at":"2017-11-30T21:25:34Z","author_association":"OWNER","body":"Actually you don't need to do anything when you leave the page.\r\nThe maps plugin removes the map and related overlays automatically when the map div is removed."}}
{"actor":{"display_login":"wf9a5m75"}}