The map is indeed finished but the parameters for inital map size do not match with what i see in Rviz. The shown initialmap in Rviz is the grey surface
In the picture you can see that the made map is much bigger than is needed for the environment. I want that my pgn file in size match with my environment. The grey surface is to big. In my attention the grey surface size must decrease when with the xmax, xmin, ymax, ymin settings. Hopefully is my question clear now.
This is the map in gazebo: