changeset 125:1a7121259942

polygon-Layers
author fknauft
date Wed, 02 Feb 2011 14:28:28 +0100
parents 8668d76a7b6a
children 89386036e661
files RestDbGisApi.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/RestDbGisApi.py	Wed Feb 02 14:24:08 2011 +0100
+++ b/RestDbGisApi.py	Wed Feb 02 14:28:28 2011 +0100
@@ -286,10 +286,8 @@
                       
             #kmlPlace['description'] = "<![CDATA[%s]]>"%desc
             kmlPlace['description'] = desc
-            if color_field:
-               color_field=color_field
-            else:
-                color_filed="red"
+            try: color_field
+            except: color_field="red"
                   
             if geometry=='point':
                kmlPlace['icon'] = '#marker_icon_'+color_field