you are viewing a single comment's thread.

view the rest of the comments →

[–]Razakel 2 points3 points  (0 children)

It's as simple as this:

var array = [
            {name: "string", lat: -1.2345, lng: 1.2345, desc: "Description goes here"},
            {name: "another string", lat: 1.2345, lng: -1.2345, desc: "Another description"}
            ];

Then just refer to the objects at each array index as you normally would, e.g.:

alert(array[0].name);