Google Earth integrated with Google Maps API v3?

♀尐吖头ヾ 提交于 2019-11-29 18:11:45

问题


I'm trying to integrate Google Earth into Google Maps, and I saw it was possible in v2. But I can't find any doc about how to do so with v3.


回答1:


Unfortunately, this is not yet implemented in Google Maps API v3, see the corresponding ticket.

Please note, the more stars a ticket has, the sooner it will be taken care of.




回答2:


Just a note that there is now an unofficial library at http://code.google.com/p/google-maps-utility-library-v3/ (trunk at http://google-maps-utility-library-v3.googlecode.com/svn/trunk/googleearth/)




回答3:


Here's my offering: https://github.com/myshen/google-maps-v3-earth-map-type.

It's not from Google but it does do a little more out of the box:

  • Links polygons, rectangles, circles, kml, in addition to markers.
  • Links mouse events (click, drag, over, out).



回答4:


I've been trying to port [jlivni]'s code to OpenLayers and have setup a GitHub project for that (1).

Now you can see a demo with Google Maps on one side and Google Earth on the other side: http://ziglionz.github.com/GoogleEarth-for-OpenLayers/ol.html

Currently the library supports only unstyled placemarks but it shouldn't be too hard to support other features.

The demo also sports a timeline for OpenLayers, that's part of another project (2).



来源:https://stackoverflow.com/questions/3039250/google-earth-integrated-with-google-maps-api-v3

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