create new mapState with map and layers and the whole shebang