set_view_state function

Set the view state of the map