@register.simple_tag<EOL>def tilelayer_preview(tilelayer):
output = '<STR_LIT>'<EOL>url = tilelayer.url_template.format(s="<STR_LIT:a>", z=<NUM_LIT:9>, x=<NUM_LIT>, y=<NUM_LIT>)<EOL>output = output.format(src=url, alt=tilelayer.name, title=tilelayer.name)<EOL>return output<EOL>
Return an <img> tag with a tile of the tilelayer.