Make writeMapLayer and writeMap in TMXWriter non-static (so that we don't have to pass around the settings object).