{"action":"created","issue":{"url":"https://api.github.com/repos/qtrandev/LeafletTransit/issues/7","labels_url":"https://api.github.com/repos/qtrandev/LeafletTransit/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/qtrandev/LeafletTransit/issues/7/comments","events_url":"https://api.github.com/repos/qtrandev/LeafletTransit/issues/7/events","html_url":"https://github.com/qtrandev/LeafletTransit/issues/7","id":66070578,"number":7,"title":"Fix blank map bug","user":{"login":"qtrandev","id":1198220,"avatar_url":"https://avatars.githubusercontent.com/u/1198220?v=3","gravatar_id":"","url":"https://api.github.com/users/qtrandev","html_url":"https://github.com/qtrandev","followers_url":"https://api.github.com/users/qtrandev/followers","following_url":"https://api.github.com/users/qtrandev/following{/other_user}","gists_url":"https://api.github.com/users/qtrandev/gists{/gist_id}","starred_url":"https://api.github.com/users/qtrandev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qtrandev/subscriptions","organizations_url":"https://api.github.com/users/qtrandev/orgs","repos_url":"https://api.github.com/users/qtrandev/repos","events_url":"https://api.github.com/users/qtrandev/events{/privacy}","received_events_url":"https://api.github.com/users/qtrandev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"qtrandev","id":1198220,"avatar_url":"https://avatars.githubusercontent.com/u/1198220?v=3","gravatar_id":"","url":"https://api.github.com/users/qtrandev","html_url":"https://github.com/qtrandev","followers_url":"https://api.github.com/users/qtrandev/followers","following_url":"https://api.github.com/users/qtrandev/following{/other_user}","gists_url":"https://api.github.com/users/qtrandev/gists{/gist_id}","starred_url":"https://api.github.com/users/qtrandev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qtrandev/subscriptions","organizations_url":"https://api.github.com/users/qtrandev/orgs","repos_url":"https://api.github.com/users/qtrandev/repos","events_url":"https://api.github.com/users/qtrandev/events{/privacy}","received_events_url":"https://api.github.com/users/qtrandev/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-04-03T04:06:38Z","updated_at":"2015-04-05T00:32:40Z","closed_at":null,"body":"There is a bug that only seems to happen once in a while where the map shows up as blank on load. It requires a 2nd reload to work.\r\n\r\nIt is very hard to reproduce but some people on a different might always see this and the blank map won't go away even on reload.\r\n\r\nI suspect it's this line in index.html (line 345) in the addNearByMarker() function:\r\nmarker.on('mouseover', function (e) {\r\n\t\t\t\tthis.openPopup();\r\n\t\t\t});"},"comment":{"url":"https://api.github.com/repos/qtrandev/LeafletTransit/issues/comments/89693349","html_url":"https://github.com/qtrandev/LeafletTransit/issues/7#issuecomment-89693349","issue_url":"https://api.github.com/repos/qtrandev/LeafletTransit/issues/7","id":89693349,"user":{"login":"ErnieAtLYD","id":33945,"avatar_url":"https://avatars.githubusercontent.com/u/33945?v=3","gravatar_id":"","url":"https://api.github.com/users/ErnieAtLYD","html_url":"https://github.com/ErnieAtLYD","followers_url":"https://api.github.com/users/ErnieAtLYD/followers","following_url":"https://api.github.com/users/ErnieAtLYD/following{/other_user}","gists_url":"https://api.github.com/users/ErnieAtLYD/gists{/gist_id}","starred_url":"https://api.github.com/users/ErnieAtLYD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErnieAtLYD/subscriptions","organizations_url":"https://api.github.com/users/ErnieAtLYD/orgs","repos_url":"https://api.github.com/users/ErnieAtLYD/repos","events_url":"https://api.github.com/users/ErnieAtLYD/events{/privacy}","received_events_url":"https://api.github.com/users/ErnieAtLYD/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T00:32:40Z","updated_at":"2015-04-05T00:32:40Z","body":"So this is what I noticed: If I got to http://qtrandev.com/transit5/ rather than http://www.qtrandev.com/transit5/ I will get the blank map with the following error messages in the Chrome log on OSX:\r\n\r\n```\r\nSynchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.\r\nindex.js:141 XMLHttpRequest cannot load http://198.74.52.26/bus/livebus.php. The 'Access-Control-Allow-Origin' header has a value 'http://www.qtrandev.com' that is not equal to the supplied origin. Origin 'http://qtrandev.com' is therefore not allowed access.\r\nindex.js:141 Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://198.74.52.26/bus/livebus.php'.\r\n```"}}