def getPreview(layer):
 return (200, Headers([('Content-Type', 'text/html')]), Core._preview(layer))

def getPreview ( layer ) : return ( 200 , Headers ( [ ( 'Content-Type' , 'text/html' ) ] ) , Core . _preview ( layer ) )
get a type string and dynamic map viewer html for a given layer .