Model: fixed function getMapState