Google maps 新GoogleEarth(地图)和google.earth.createInstance(…)之间有什么区别

Google maps 新GoogleEarth(地图)和google.earth.createInstance(…)之间有什么区别,google-maps,google-maps-api-3,google-earth,google-earth-plugin,Google Maps,Google Maps Api 3,Google Earth,Google Earth Plugin,新谷歌地球(地图)和google.earth.createInstance(…)之间有什么区别?我们正试图将Google Earth整合到一个有效的遗留应用程序中,而该应用程序使用Google地图。开发时,他们似乎考虑到了Google Earth,因为有以下代码片段: if (google.earth && google.earth.isInstalled()) { var ge = new GoogleEarth(map); 我们有一个地图菜单系统,根据地图类型添加选择,

新谷歌地球(地图)和
google.earth.createInstance(…)
之间有什么区别?我们正试图将Google Earth整合到一个有效的遗留应用程序中,而该应用程序使用Google地图。开发时,他们似乎考虑到了Google Earth,因为有以下代码片段:

if (google.earth && google.earth.isInstalled()) {
  var ge = new GoogleEarth(map);
我们有一个地图菜单系统,根据地图类型添加选择,这会自动为谷歌地球添加一个条目;然而,当选择此选项时,尽管控件与其他地图一样显示,但我们只能看到一个白色屏幕

或者,我们尝试了
google.earth.createInstance
,界面似乎与其他地图类型(道路、地形、卫星)不同。例如,要缩放它,我们似乎必须使用
lookAt.setRange
。此外,谷歌地球地图没有被添加到我们的菜单,但至少地图工作

新谷歌地球(地图)
是否已弃用?
google.earth.createInstance
返回的实例是否不再是真正的“映射类型”

两者之间有什么区别

是中用于创建的方法

new GoogleEarth(地图)
是中的初始化。它本质上允许您创建在和之间切换时保持不变的对象(标记、几何体)

新的谷歌地球(地图)被弃用了吗

。这是一个

google.earth.createInstance返回的实例是否不再是真正的“映射类型”


它是,而且一直是,它从来不是一个“地图类型”。我相信图书馆用于地球层的“地图类型”是“Google EarthAPI”。

Google earth API被弃用,然后在2015年12月被Google关闭: