In javascript array called mystack, for each recordNo, I want to set up a set of lat/lon values for entities "Source1" and "Source2", but I am having trouble getting the syntax just right. recordNo is a numeric database record id (eg: 1,2,3)
mystack = {};
mystack[recordNo {"Source1" } ] =
[
{
"lat": 123,
"lon": 456
}
]
mystack[recordNo {"Source2" } ] =
[
{
"lat": 123,
"lon": 456
}
]
recordNo {"Source1" }in JavaScript. However, since you didn't say what you want, we can't tell what you should do instead.mystackis not an array, it's an object.