You are looking at a command called locationadd

locationadd
locationadd {object}

Adds the current location to the world map.

The object you specify is the one it will be placed under on the map.

You can nudge an object up,down,left and right in relation to the object you placed it agains on the map.

You can only add a location if you created it or if it is not locked.
Code