Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Earth View in Google Maps

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

like image 871
Radu Avatar asked Feb 04 '14 10:02

Radu


1 Answers

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

like image 164
Dr.Molle Avatar answered Sep 25 '22 14:09

Dr.Molle