in rviz, the map cloud plugin limits maximum depth to 4 meters by default, while in rtabmapviz this parameter is 0 (infinite, see Preferences->3D Rendering). If you want to see the whole point cloud in rviz, set its parameter to 0.
Is the Grid/RangeMax parameter what you are talking about? I have tried to change it but it seems to do nothing. When I do "rosparam get /robot/zed2/rtabmap/Grid/RangeMax" the result is 0 or whatever I have there, but if I do "rtabmap --params | grep Grid/" I see "Param: Grid/RangeMax = "5.0"" always, like it is not changing.
If you are visualizing cloud_map, it is indeed Grid/RangeMax that should be modified. Note sure how you launched rtabmap node, but Grid/RangeMax can be set as parameter inside rtabmap tag, or by argument (see doc).
When doing "rtabmap --params", it only lists default parameters with default values.