There are parameters, but there's an issue with XYZ layers. But there is a patch. All the info is here: http://stackoverflow.com/a/4294980/229875