changeset 186:c0ced397fd26

corrected links in desc (RestDbGisApi)
author fknauft
date Wed, 16 Feb 2011 12:17:13 +0100
parents 13d25b60e421
children f080901d8163
files RestDbGisApi.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/RestDbGisApi.py	Wed Feb 16 11:54:42 2011 +0100
+++ b/RestDbGisApi.py	Wed Feb 16 12:17:13 2011 +0100
@@ -296,7 +296,7 @@
             
                     val = "%s: %s"%(name, value)
                     if val.find('http')>-1:
-                        val ='<a href="' + value + '" target="_blank">' + val + '</a>'
+                        val ='<a href="' + value + ' " target="_blank"> ' + val + ' </a>'
                         
                     #desc += kmlEncode(val)
                     desc += val
@@ -306,7 +306,7 @@
             
                   
             if geomField=='point':
-                kmlPlace['description'] = '<![CDATA['+desc+']]>'
+                kmlPlace['description'] = '<![CDATA[\n'+desc+']]>'
                 kmlPlace['icon'] = '#marker_icon_'+colorField
                 kmlPlace['coord_x'] = str(xCoord)
                 kmlPlace['coord_y'] = str(yCoord)