14

I am using the latest maps API and I was wondering how, if at all possible, can I enable the earth view for my map? What I'm looking for is the following result:

first view

...and after clicking the bottom left element 'Earth':

second view

Peter O.
  • 32,158
  • 14
  • 82
  • 96
Radu
  • 1,044
  • 3
  • 12
  • 35

1 Answers1

5

The earth-view is not available in the Maps-Javascript-API-V3, you'll need to implement it on your own by using the Earth-API.

Basically you'll need to use 2 containers, 1 for the map and 1 for the earth. When you want to switch between map and earth you must toogle the visibility of the containers.

When you don't want to reinvent the wheel you may use this library: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/googleearth/docs/reference.html

Dr.Molle
  • 116,463
  • 16
  • 195
  • 201
  • I see. What I don't understand is how come in maps switching to earth view happens without a google earth plugin for the browser, while in the examples that I found (which are in the general lines as your proposed approach) a plugin is needed. – Radu Feb 04 '14 at 13:41
  • The earth-view in maps.google.com uses WebGL. Currently there is no API available so you must use what is available:the API for the earth-plugin. – Dr.Molle Feb 05 '14 at 02:52
  • Right. Thx for the answr. – Radu Feb 05 '14 at 06:21