Check if a block is inside the boundary of the map before add it into th...

...e space map.