migurski/TileStache — pull request #16 by llimllib (2011-11-18 20:13:53+00:00)
Title: A Composite Layer Zoom Level Option

I've added a "zoom" keyword for composite layers, whose value is a comparison. So, if you want a layer to only be included at zoom level 9 or lower, you can do {"src": "osm_layer", "zoom": "<=9"}. It supports the operators <, <=, ==, >=, and >.

I also added an example utilizing this function to the examples directory.

Let me know how you like it! I can think of a few other ways to accomplish zoom level separation, but this seemed the best to me.