How to set google.maps.MapTypeId to view land in Google Maps

How do I set up Google Maps to display in Earth mode? I am using google maps v3

+5
source share
4 answers

You mean the Google Earth plugin. This gives you the equivalent of Google Earth in a browser.

http://code.google.com/apis/earth/

Here is a basic example that shows how to enable it:

http://code.google.com/apis/earth/documentation/#using_the_google_earth_api

Look at the “full example” (scroll down).

+1
source

The following map types are available in the Google Maps API :

MapTypeId.ROADMAP displays the default roadmap view

MapTypeId.SATELLITE Google Earth

MapTypeId.HYBRID

MapTypeId.TERRAIN , .

. https://developers.google.com/maps/documentation/javascript/maptypes

+8

If on Earth View you are referring to the Satellite view, you want to set your MapType as shown here .

map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
+2
source

Use it

map.setMapTypeId('GoogleEarthAPI');

use this after setting up all things like markers etc.

Good luck.

+2
source

All Articles