Can you change the view in Google Earth API from “Earth” to “Map” like in Google Maps?

柔情痞子 提交于 2019-12-11 04:59:19

问题


I am developing a web page which uses the Google Earth plugin. I would like to display the map like in the first image with the "Earth" and "Satellite/Map" view options like you can in Google Maps, or at least be able to just show the map in "Satellite/Map" view:

Currently this is what the view looks like:

Is this possible?


回答1:


Yes, you can use the Google Maps V3 to switch between Google Maps and the Google Earth Plug-in.

The google-maps-utility-library-v3 can be used to make this easier.

You can see a working example here.

Alternatively you can simulate a reasonable map view buy just turning of the terrain and photo imagery and turning on the borders and roads layers in the Earth Plug-in. If you then lock this view to 'plan' it works well.



来源:https://stackoverflow.com/questions/19389109/can-you-change-the-view-in-google-earth-api-from-earth-to-map-like-in-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!