Need help making a Horizontally continous world map

This is currently what I have:

And I want to make it like this:

For example, in the game Heart of Iron IV, the player can move left or right infinitely.
And I want it to be interactable; a ship could go through the Pacific ocean, we can build some structures.

It seems I should move some tiles that are too far away from the camera to the other side of the map, Every camera move…
So there’s the problem, How can I move those bunch of tiles,
and how do I detect they need to move to the other side of map?

Thanks for reading, any help would be appreciated!