Bill
Bill

Reputation: 2352

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

How can I configure Google Maps to show in Earth View? I am using Google Maps V3

Upvotes: 5

Views: 20303

Answers (2)

Nitesh Kumar
Nitesh Kumar

Reputation: 91

Use this,

map.setMapTypeId('GoogleEarthAPI');

use this after setting up all things, like markers etc.

Good luck.

Upvotes: 2

bamnet
bamnet

Reputation: 2554

Iff by "Earth View" you're referring to the Satellite view, you want to set your MapType as shown on here.

map.setMapTypeId(google.maps.MapTypeId.SATELLITE);

Upvotes: 2

Related Questions