Gabriel,

mapTypeIds requires an array.

http://code.google.com/apis/maps/documentation/v3/reference.html#MapTypeControlOptions

Array.<MapTypeId>| string>

Although the documentation contains an additional >, I believe it's
the first one which is not required. mapTypeIds accepting an array of
either MapTypeId or string. It doesn't really make sense to have a
selection control with only one option.

http://www.anactivelifestyle.com/groups/maptypeids.html

James


On Mar 27, 7:41 am, Chad Killingsworth
<[email protected]> wrote:
> The google.maps.MapTypeId values are implemented as strings. They
> aren't really intended to pass the literal string, although that would
> probably work.
>
> You'd need to pass a single google.maps.MapTypeId value.
>
> Chad Killingsworth
>
> On Mar 27, 12:55 am, Gabriel Svennerberg <[email protected]>
> wrote:
>
>
>
> > Yes that would probably be the case. The problem is that I can get it
> > to work at all. I've tried passing the value as a string in different
> > ways but nothing works.
>
> > Gabriel Svennerberg

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to