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.

- 42,006
- 17
- 96
- 122

- 2,415
- 5
- 23
- 24
-
I would also like to know how to do it... – RooSoft Jun 25 '10 at 17:40
4 Answers
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/)

- 4,759
- 1
- 19
- 30
-
You just have to use this javascript (check example folder) http://code.google.com/p/google-maps-utility-library-v3/source/browse/trunk/googleearth/#googleearth%2Fsrc – toutpt Jul 29 '11 at 14:24
-
Doesn't work for me. Error: `google[C] is undefined in googleearth-compiled.js` – Alexander Palamarchuk Apr 18 '12 at 10:02
-
Does the demo work for you at http://google-maps-utility-library-v3.googlecode.com/svn/trunk/googleearth/examples/earth.html ? It uses that code, and gives me no errors. If you have troubles what browser and operating system are you using? – jlivni Apr 18 '12 at 20:42
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).

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

- 2,573
- 4
- 27
- 32