Map view set w set onet on saved map load.
Refactor to module pattern.
Refactor to module pattern.