Thank you, you are a legend.

It's always the littlest thing...

On Mar 2, 4:03 pm, Andrew Leach <andrew.leac...@gmail.com> wrote:
> On 2 March 2011 15:53, Nick <mercy.recomme...@gmail.com> wrote:
>
>
>
> > Can anyone tip me off as to what I've done wrong?
>
> Here:
>
>   mapTypeControlOptions: {
>                 mapTypeIds: types,
>         style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
>         position: google.maps.ControlPosition.RIGHT_TOP,
>     },
>
> you have a comma immediately before the }.
>
> IE's error is "expected identifier" or something similar, so it's
> telling you that something is missing. In this case, a comma
> *introduces* something new -- it signifies that something is to
> follow, and the browser doesn't find anything, just the } which closes
> the object.
>
> Other browsers are better behaved and simply use commas to separate 
> properties.
>
> The solution is to ensure that any comma is either followed by
> something substantive, or removed altogether.

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to