• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

Google Maps API & hybrid button

I successfully got the basic google maps api running on a page of mine.  However, the basic map does not have the buttons to switch to "satellite" or "hybrid" mode.  The API documentation is a bit long and complicated.  Can anyone tell me what I need to do to add buttons to switch to satellite and hybrid modes like is available on maps.google.com?

0
phasevar
Asked:
phasevar
  • 2
1 Solution
 
rangasumanCommented:
I would suggest you to use Google maps EZ from the following link:
http://bluweb.com/us/chouser/gmapez/
It is very easy to use compared to the api. Hope that helps.
0
 
rangasumanCommented:
Or if you prefer to use the Google maps api directly, then try this code:

var map = new GMap2(document.getElementById("map"));
map.addControl(new GMapTypeControl());
0
 
phasevarAuthor Commented:
map.addControl(new GMapTypeControl());

That was exactly what I was looking for!  Thanks!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now