{"action":"created","issue":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/777","labels_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/777/labels{/name}","comments_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/777/comments","events_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/777/events","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/777","id":121999651,"number":777,"title":"Added HTMLElement on top of map is always null","user":{"login":"Mojo90","id":2122156,"avatar_url":"https://avatars.githubusercontent.com/u/2122156?v=3","gravatar_id":"","url":"https://api.github.com/users/Mojo90","html_url":"https://github.com/Mojo90","followers_url":"https://api.github.com/users/Mojo90/followers","following_url":"https://api.github.com/users/Mojo90/following{/other_user}","gists_url":"https://api.github.com/users/Mojo90/gists{/gist_id}","starred_url":"https://api.github.com/users/Mojo90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mojo90/subscriptions","organizations_url":"https://api.github.com/users/Mojo90/orgs","repos_url":"https://api.github.com/users/Mojo90/repos","events_url":"https://api.github.com/users/Mojo90/events{/privacy}","received_events_url":"https://api.github.com/users/Mojo90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-14T08:56:41Z","updated_at":"2015-12-14T09:08:23Z","closed_at":null,"body":"According to this: https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/Map#put-html-elements-on-the-map we can always add HTMLElements on top of the map. I did this by javscript, the HTMLElement is also shown and I can do with it whatever I want to but if I check if the Element exists it says always \"no\" --> I always checking like this:\r\n ```\r\nif(document.getElementById(\"ID\")){\r\n    //exist\r\n}\r\nelse{\r\n    //doesn't exist\r\n}\r\n ```\r\n\r\nSo it print out always \"null\" for my added Element even if it definetely added to dom and the map. The Plugin also adds a property to the Element: __plugindomid=\"pgm787853408411\". And I am not sure if this has to to with it that it is not \"in normal DOM Tree\" or so...\r\n\r\nAny help appreciated, because I sometimes need to check if it is existent or not and according to this do sth..."},"comment":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/comments/164383728","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/777#issuecomment-164383728","issue_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/777","id":164383728,"user":{"login":"Mojo90","id":2122156,"avatar_url":"https://avatars.githubusercontent.com/u/2122156?v=3","gravatar_id":"","url":"https://api.github.com/users/Mojo90","html_url":"https://github.com/Mojo90","followers_url":"https://api.github.com/users/Mojo90/followers","following_url":"https://api.github.com/users/Mojo90/following{/other_user}","gists_url":"https://api.github.com/users/Mojo90/gists{/gist_id}","starred_url":"https://api.github.com/users/Mojo90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mojo90/subscriptions","organizations_url":"https://api.github.com/users/Mojo90/orgs","repos_url":"https://api.github.com/users/Mojo90/repos","events_url":"https://api.github.com/users/Mojo90/events{/privacy}","received_events_url":"https://api.github.com/users/Mojo90/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T09:08:23Z","updated_at":"2015-12-14T09:08:23Z","body":"added a class and checked with ```document.getElementsByClassName(\"classname\").length``` and it prints out ```0``` all the time. In Web Inspector I can see the element with ID, Class etc. perfectly. But as mentioned before not sure if the plugin does sth. that the element cannnot be recognized anymore.\r\nBut the weird thing is: I can even style or remove the element with ```document.getElementById(\"ID\").style.color = \"red\"```etc. But just before this styling line the console tells me that the element does not exist (```console.log(document.getElementById(\"ID\"))```)"}}