Google Earth integrated with Google Maps API v3?

2019-02-08 13:37发布

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.

4条回答
Evening l夕情丶
2楼-- · 2019-02-08 13:53

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).
查看更多
淡お忘
3楼-- · 2019-02-08 14:03

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).

查看更多
做自己的国王
5楼-- · 2019-02-08 14:11

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.

查看更多
登录 后发表回答