On Oct 25, 12:02 pm, adam1mc <[email protected]> wrote:
> I'm new to all this so I apologize my ignorance shows through  ;-)
>
> I'm getting married next year in Mexico and I want to display a maps
> API on my website so my visitors can view the resort we are going to.
> I followed the Google Maps API walk through and have everything setup
> with my map, however, I am unable to get the code to open the
> satellite view as opposed to the default Map view.  I'm using:
>
> map.setUIToDefault(G_SATELLITE_MAP);
>
> but that doesn't seem to work.  The code is located 
> here:http://adamandjennawedding.com/index.cfm?fa=general10
>
> Any suggestions?

Change this line:
        map.setCenter(new GLatLng(20.48925569299358,
-87.2435474395752), 15);
to:
        map.setCenter(new GLatLng(20.48925569299358,
-87.2435474395752), 15, G_SATELLITE_MAP);

setUIToDefault doesn't take any arguments...
http://code.google.com/apis/maps/documentation/reference.html#GMap2.setUIToDefault

  -- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to