Update mapWriter.php