{"action":"created","issue":{"url":"https://api.github.com/repos/jawj/OverlappingMarkerSpiderfier/issues/99","labels_url":"https://api.github.com/repos/jawj/OverlappingMarkerSpiderfier/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/jawj/OverlappingMarkerSpiderfier/issues/99/comments","events_url":"https://api.github.com/repos/jawj/OverlappingMarkerSpiderfier/issues/99/events","html_url":"https://github.com/jawj/OverlappingMarkerSpiderfier/issues/99","id":108864126,"number":99,"title":"        var oms = new OverlappingMarkerSpiderfier(map);   is not executed or in error","user":{"login":"Ton024","id":14176181,"avatar_url":"https://avatars.githubusercontent.com/u/14176181?v=3","gravatar_id":"","url":"https://api.github.com/users/Ton024","html_url":"https://github.com/Ton024","followers_url":"https://api.github.com/users/Ton024/followers","following_url":"https://api.github.com/users/Ton024/following{/other_user}","gists_url":"https://api.github.com/users/Ton024/gists{/gist_id}","starred_url":"https://api.github.com/users/Ton024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ton024/subscriptions","organizations_url":"https://api.github.com/users/Ton024/orgs","repos_url":"https://api.github.com/users/Ton024/repos","events_url":"https://api.github.com/users/Ton024/events{/privacy}","received_events_url":"https://api.github.com/users/Ton024/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-29T13:01:14Z","updated_at":"2015-10-02T18:08:55Z","closed_at":"2015-10-02T18:08:55Z","body":"I have created a simple webform (ASP.NET VS2010): With all the content in de body.\r\nThere are 3 alert boxes. The third is not fired.\r\n\r\nIt looks if OverlappingMarkerSpiderfier is not working. It is called because I put an extra alertbox inside the code oms.min.js, and removed it. \r\nSo what is happening. I've loaded google api with the latest version, but also with version 3.7 nothing helps.\r\n\r\nWhat am I doing wrong?\r\nloading scripts:\r\n script  type= \"text/javascript\" src=\"https://maps.googleapis.com/maps/api/js?v=3.7&callback=initMap\"></script>  \r\n script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js\"></script> \r\n\r\nscript code:\r\n  $(document).ready(function () {\r\n         loadJsFile(\"scripts/oms.min.js\");\r\n         alert('1. loaded script');\r\n     });\r\n     var map;\r\n     function initMap() {\r\n         alert('2. initMap');\r\n         var gm = google.maps;\r\n         map = new gm.Map(document.getElementById('map'), {  center: { lng: 5.8694, lat: 51.8431 }, zoom: 12 });\r\n         var oms = new OverlappingMarkerSpiderfier(map);\r\n         alert('3. oms should be created');// no alert box over here ! So oms is not created !!!\r\n     }\r\n\r\n     function loadJsFile(fileLocation) {\r\n         var fileref = document.createElement('script');\r\n         fileref.setAttribute(\"type\", \"text/javascript\");\r\n         fileref.setAttribute(\"src\", fileLocation);\r\n         document.getElementsByTagName(\"head\")[0].appendChild(fileref);\r\n     }\r\n \r\n \r\n"},"comment":{"url":"https://api.github.com/repos/jawj/OverlappingMarkerSpiderfier/issues/comments/145109553","html_url":"https://github.com/jawj/OverlappingMarkerSpiderfier/issues/99#issuecomment-145109553","issue_url":"https://api.github.com/repos/jawj/OverlappingMarkerSpiderfier/issues/99","id":145109553,"user":{"login":"Ton024","id":14176181,"avatar_url":"https://avatars.githubusercontent.com/u/14176181?v=3","gravatar_id":"","url":"https://api.github.com/users/Ton024","html_url":"https://github.com/Ton024","followers_url":"https://api.github.com/users/Ton024/followers","following_url":"https://api.github.com/users/Ton024/following{/other_user}","gists_url":"https://api.github.com/users/Ton024/gists{/gist_id}","starred_url":"https://api.github.com/users/Ton024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ton024/subscriptions","organizations_url":"https://api.github.com/users/Ton024/orgs","repos_url":"https://api.github.com/users/Ton024/repos","events_url":"https://api.github.com/users/Ton024/events{/privacy}","received_events_url":"https://api.github.com/users/Ton024/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T18:08:55Z","updated_at":"2015-10-02T18:08:55Z","body":"It works !\r\nI've added a button to call initMAP() this worked.\r\nI later used the source added to the example."}}