You set it correctly, then set it wrongly

map.addMapType(G_PHYSICAL_MAP);
map.setMapType(G_PHYSICAL_MAP);
maptype = 'G_PHYSICAL_MAP';
map.setMapType(maptype);

You only need the first two lines, not the second two.


On Mon, Feb 27, 2012 at 3:13 PM, GeoChallenger <[email protected]> wrote:
>
> I have tried several different things that I have read from the forums and 
> tutorials to get the default view to show up as the Terrain. I am still not 
> able to get it to work correctly. I have gotten the Terrain button to work 
> correctly, but am having troubles adjusting to a terrain as the default type.
>
> Here is the link: http://gradyandchrista.com/mapXmlTabsDirections.html
>
> Any help would be GREATLY appreciated.
>
> Thanks for your time.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Maps API V2" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/google-maps-api/-/PZ_w9xsPM5cJ.
> 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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