Add Map function in generate.cgi