You can (and must, for the final map to be playable) create visibility zones (rectangles). For that you have command "-createVisibility" (-crv). Once enabled, you create rectangular visibility zones, each one with two right clicks. You can make multiple visibility zones in a level.
To create some visibility use first command "-viewAll" (-va) to be able to aim, create you visibility zone and type "-hideAll" (-ha) to check if this one is well placed.
If you notice that you placed a visibility zone badly, you can undo it with "-z" and start again.
If you notice that in a level visibility zones are placed badly and that it's impossible to cancel them with "-z", you have to make them all again. For that start by removing them with command "-removeVisibilities" (-remv).