Add layer rendering to doRedraw for the map

The doRedraw function now add the missing layers and delete the useless ones.
It is way quicker than calling doRender.