On 7 Nov., 16:50, Tony <[email protected]> wrote:
> Esa, Fantastic, thank you very much, works a treat!
> Clearly I've not understood use of curly braces {} in code!

It is just object literal:
What is an object literal? In nontechnical terms, it is a means of
containing a lot of data in one tidy package. It is a comma separated
list of name value pairs wrapped in curly braces. In JavaScript an
object literal is declared or defined as follows:

var myObject = {} //empty literal
var my Object = {
    key1: value1,
    key2: value2
} // literal containing to key-value pairs

First I was a bit confused about the new API using object literals a
lot on Friday evening - but just for being used the old style. After
working a bit with the new API I like very much for the easier to read
code and the speed.

Best, Harald

--

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=.


Reply via email to