On Oct 15, 12:27 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Oct 14, 4:11 pm, ramasaig <[EMAIL PROTECTED]> wrote:
>
> > Can I get a map to load with the Terrain layer showing by default ?
>
> Yes.  You could try the documentation or a search of the group.  This
> is almost a FAQ...
>
> > The map isn't public yet, but I have the following code, and it opens
> > OK but with just the Map layer showing.  I can click and switch on the
> > Terrain, but I'd like it to show by default.
>
> > function loadsmallmap() {
> >         if (GBrowserIsCompatible()) {
> >                 map = new GMap2(document.getElementById("map1"));
> >                 map.addMapType(G_PHYSICAL_MAP);
> >                 var center = new GLatLng(56.4500, -6.0300);
>
> change this line:>                 map.setCenter(center, 8);
>
> to:
>                  map.setCenter(center, 8, G_PHYSICAL_MAP);
>
>    -- Larry

Thank you.  I did search the group, but probably used the wrong key
words (Terrain instead of Physical).
Likewise the documentation, but I don't yet always understand what I
find.

Tim
--~--~---------~--~----~------------~-------~--~----~
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