JSFiddle - React, Tailwind, and code Playground

JavaScript

//Creating the object, with the blank locations key
var simplemaps_worldmap_mapdata = {
    locations: {

    }
}

//Saving the object and creating the new array
var mainObj = simplemaps_worldmap_mapdata;
var newObj = [];

newObj.push({
    name: 'newName',
    lat: 'newLat',
    lng: 'newLong',
    color: 'newColor',
    description: 'newDesc',
    url: 'newUrl',
    size: 'newSize',
    type: 'newType',
    opacity: 'newOpacity'
});

mainObj.locations.push(newObj);

console.log(mainObj.locations);