eon-map
eon-map copied to clipboard
Using JSON variable keys is confusing to new developers.
Many new developers are not familiar with the concept of dynamic keys:
var a = "key";
var data = {};
data[a] = true;
console.log(data.key);
// true
It would make sense to provide the option of:
{
latlng: [1,2,],
key: 'something'
}
As an option