maps and template