Google Maps API & hybrid button

Posted on 2006-04-24
Last Modified: 2011-09-20
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

Question by:phasevar
    LVL 7

    Expert Comment

    I would suggest you to use Google maps EZ from the following link:
    It is very easy to use compared to the api. Hope that helps.
    LVL 7

    Accepted Solution

    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());

    Author Comment

    map.addControl(new GMapTypeControl());

    That was exactly what I was looking for!  Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    The viewer will learn how to count occurrences of each item in an array.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now