Can the Locations object have a new property added to it?
The property to be added is:
2:{
name: "Japan",
lat: 36,
lng: 138,
description: 'default',
color: 'default',
url: 'default'
}
The current Locations object looks like this:
var locations = {
0: {
name: "New York",
lat: 40.71,
lng: -74.0059731,
description: 'default',
color: 'default',
url: 'default',
size: 'default'
},
1: {
name: "London",
lat: 51.5073346,
lng: -0.1276831,
description: 'default',
color: 'black',
url: 'default',
type:'square'
}
}
If we add the new property, the Locations object will look like this:
locations:{
0: {
name: "New York",
lat: 40.71,
lng: -74.0059731,
description: 'default',
color: 'default',
url: 'default',
size: 'default'
},
1: {
name: "London",
lat: 51.5073346,
lng: -0.1276831,
description: 'default',
color: 'black',
url: 'default',
type:'square'
}
2:{
name: "Japan",
lat: 36,
lng: 138,
description: 'default',
color: 'default',
url: 'default'
}
}