Google maps 如何设置;谷歌地球插件;在谷歌地图iframe中作为默认视图查看?

Google maps 如何设置;谷歌地球插件;在谷歌地图iframe中作为默认视图查看?,google-maps,iframe,google-earth,google-earth-plugin,Google Maps,Iframe,Google Earth,Google Earth Plugin,我正在使用它,我想将Google EARTH设置为默认视图。使用setMapType设置所需的地图类型: map.setMapType(G_SATELLITE_3D_MAP); : 链接的示例使用MapsAPIv2,对于V3它有点不同。等待地图的空闲事件,并将mapType设置为“GoogleEarthAPI” 转到文档的第116行并修改它: if (isGEinstalled) { googleEarth = new GoogleEarth(map); //add the followi

我正在使用它,我想将Google EARTH设置为默认视图。

使用setMapType设置所需的地图类型:

 map.setMapType(G_SATELLITE_3D_MAP);

: 链接的示例使用MapsAPIv2,对于V3它有点不同。等待地图的空闲事件,并将
mapType
设置为“GoogleEarthAPI”

转到文档的第116行并修改它:

if (isGEinstalled)
{
googleEarth = new GoogleEarth(map);
//add the following line
google.maps.event.addListenerOnce(map,'idle',function(){map.setMapTypeId('GoogleEarthAPI')});
}
else
{
  alert("O plugin de Google Earth não está instalado");
}

你能帮助我吗。我在这张地图上试过了,但没用,你们能告诉我应该在JS的哪一行添加它吗?第84行对吗?但它不起作用,正在积聚!简单有效。