我们如何使用谷歌地球api在谷歌地球上显示自然地标

时间:2015-06-09 12:10:55

标签: google-earth

如何使用Google Earth API在Google地球上显示自然地标?

1 个答案:

答案 0 :(得分:0)

The layers in Google Earth API are limited to borders, buildings, roads, trees, and terrain.

For those specific layers, you can enable them with

ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, true);

But note that the Google Earth API has been deprecated as of December 12th, 2014. The API will continue to work on supported browsers until December 12th, 2015, and will shut down on that date.

The Google Earth API was created to embed Google Earth within a web page to be viewed by a web browser. More details at https://developers.google.com/earth/documentation/layers
and https://developers.google.com/earth/

You can use Google Maps API to view natural landmarks and embed the view in a web page. There is an Earth mode but it's not quite Google Earth.

Using the Google Earth desktop application, you can view any of the natural landmarks by just typing its name in the search box (e.g. Grand Canyon) and flying to that location.