From 4efd84016bf353d36be2df7afde38b85ab7d6db1 Mon Sep 17 00:00:00 2001 From: ThomasG77 Date: Mon, 12 Dec 2011 13:24:28 -0800 Subject: [PATCH] Updated ElseFilter (markdown) --- ElseFilter.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ElseFilter.md b/ElseFilter.md index 15a5d9e..3e791ff 100644 --- a/ElseFilter.md +++ b/ElseFilter.md @@ -15,8 +15,7 @@ For each Object read from the Datasource Mapnik checks if the current ScaleDenom * If the Object _passes_ these tests, the first Rule is evaluated painted to the map. The two other Rules are ignored in this case. * If the Object _misses_ these tests, the two Rules with an `` are evaluated according to their Min- and MaxScaleDenominator. - - #!xml +```xml +``` ## Example in Python - #!python +```python rule = mapnik.Rule() rule.set_else(True) # instead of rule.filter(...) +``` ## See also * The normal [Filter](https://github.com/mapnik/mapnik/wiki/Filter)