If it is a completely new building, you have to make a new overmap_terrain object. Check out overmap_terrain.json for details, then make the om_terrain field in your mapgen file match that overmap_terrain id, then if you want it to spawn like a shop, there’s a regional settings json that needs to be updated.