Mercurial > hg > ChinaGisRestApi
changeset 124:8668d76a7b6a
polygon-Layers
author | fknauft |
---|---|
date | Wed, 02 Feb 2011 14:24:08 +0100 |
parents | f0a5a4e324ea |
children | 1a7121259942 |
files | RestDbGisApi.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/RestDbGisApi.py Wed Feb 02 14:21:13 2011 +0100 +++ b/RestDbGisApi.py Wed Feb 02 14:24:08 2011 +0100 @@ -286,8 +286,11 @@ #kmlPlace['description'] = "<![CDATA[%s]]>"%desc kmlPlace['description'] = desc - if color_field==None: - color_field="red" + if color_field: + color_field=color_field + else: + color_filed="red" + if geometry=='point': kmlPlace['icon'] = '#marker_icon_'+color_field kmlPlace['coord_x'] = str(xCoord)