Added map layout data constants

1. Also check to make sure data has the right dimensions.