Moved map object properties to the init function.