{"action":"closed","issue":{"url":"https://api.github.com/repos/Arcanemagus/google-maps-utility-library-v3/issues/178","labels_url":"https://api.github.com/repos/Arcanemagus/google-maps-utility-library-v3/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/Arcanemagus/google-maps-utility-library-v3/issues/178/comments","events_url":"https://api.github.com/repos/Arcanemagus/google-maps-utility-library-v3/issues/178/events","html_url":"https://github.com/Arcanemagus/google-maps-utility-library-v3/issues/178","id":91013862,"number":178,"title":"Objects not visible immediately after click in Earth mode","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Arcanemagus/google-maps-utility-library-v3/labels/auto-migrated","name":"auto-migrated","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T16:36:26Z","updated_at":"2015-07-19T02:36:17Z","closed_at":"2015-07-19T02:36:17Z","body":"```\nI use Google Earth as primary view, but problem is because all changes I make \naren't visible immediately. For exapmle, if I want to view created marker, I \nneed to switch to one of Maps views an then back to Earth.\nRelevant part of my source code:\n\n// Init map\nfunction init() {\t\t\n\tmap = new google.maps.Map(document.getElementById('map'), {\n\t\tzoom: 10,\n\t\tcenter: new google.maps.LatLng(xx, yy),\n\t\tmapTypeId: google.maps.MapTypeId.ROADMAP\n\t});\n\n\t// Google Earth view on Map\n\tgoogleEarth = new GoogleEarth(map);\n\n\t// Google Maps Event Handlers\n\tgoogle.maps.event.addListener(map, 'click', function(event) {\n\t\tvar marker = new google.maps.Marker({\n\t\t\tposition: latlng,\n\t\t\tmap: map,\n\t\t\tdraggable: true\n\t\t});\n\n\t\tmarker.setMap(map);\n\t});\n\n\tgoogle.maps.event.addListener(map, 'center_changed', function() {\n\t\t// Clear timeout for sync\n\t\tif (timer) clearTimeout(timer);\n\n\t\t// Set new timeout function\n\t\ttimer = setTimeout(function() {\n\t\t\tsync();\n\t\t}, 500);\n\t});\n\n\t// Show Google Earth first time when map loaded\n\tgoogle.maps.event.addListenerOnce(map, 'tilesloaded', function() {\n\t\tgoogle.maps.event.addListener(map, 'maptypeid_changed', getEarthInstance);\n\t\tmap.setMapTypeId(GoogleEarth.MAP_TYPE_ID);\n\t});\n}\n\n// Try changing to show Earth until Google Earth initialized\nfunction getEarthInstance() {\n\tif(typeof googleEarth.getInstance() === 'undefined') {\n\t\tsetTimeout('getEarthInstance()', 500);\n\t} else {\n\t\tge = googleEarth.getInstance(); // earth is GEPlugin\n\t\tstartEarth();\n\t}\n}\n\nWhat steps will reproduce the problem?\n1. Show map in Google Earth view\n2. Click to add new Marker on Map in Earth mode\n\nExpected result:\nExpected result is that Marker is visible immediately after I click on Earth \nview, like in any of Maps view. But it is visible after switch to Maps and then \nback to Earth view.\n\nActual result:\nMarker is not displayed on Earth.\n\nBrowser / Operating System:\n[e.g. FF, IE, Chrome / Win7, Ubuntu]\n\nAdditional comments:\nIt looks like Earth view is not perfectly connected to Maps like in another \nproblem I have. It is that when I resize parent div (with jQuery UI Layout \nPlug-in), Maps change size to fit parent div, but Earth stays small like before.\n```\n\nOriginal issue reported on code.google.com by `srecko.z...@gmail.com` on 4 Jun 2012 at 10:56"}}