Mercurial > hg > ChinaGisRestApi
changeset 133:8a4201f31ca9
polygon-Layers
author | fknauft |
---|---|
date | Wed, 02 Feb 2011 17:10:22 +0100 |
parents | 66f4491519ae |
children | 649681baae76 |
files | RestDbGisApi.py gis_gui/blocks/layer.js |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/RestDbGisApi.py Wed Feb 02 16:53:19 2011 +0100 +++ b/RestDbGisApi.py Wed Feb 02 17:10:22 2011 +0100 @@ -287,11 +287,11 @@ #kmlPlace['description'] = "<![CDATA[%s]]>"%desc kmlPlace['description'] = desc -# if geomField=='point': - kmlPlace['icon'] = '#marker_icon_'+colorField - kmlPlace['coord_x'] = str(xCoord) - kmlPlace['coord_y'] = str(yCoord) - kmlPlace['coord_z'] = '0' + if geomField=='point': + kmlPlace['icon'] = '#marker_icon_'+colorField + kmlPlace['coord_x'] = str(xCoord) + kmlPlace['coord_y'] = str(yCoord) + kmlPlace['coord_z'] = '0' if geomField=='poly': kmlPlace['LinearRing']=geomdata.split('(')[4] kmlPlace['LineColor']=colorField
--- a/gis_gui/blocks/layer.js Wed Feb 02 16:53:19 2011 +0100 +++ b/gis_gui/blocks/layer.js Wed Feb 02 17:10:22 2011 +0100 @@ -126,6 +126,7 @@ paramstr += "&connect_line="+params.connect_line; } var layerurl = "../db/RESTdb/db/public/" + escape(params.table) + "?" + paramstr; + alert(layerurl); jQuery.get(layerurl, function(data, textStatus, XMLHttpRequest) { // function after load kml url finished console.debug("kml url loaded! this=", this, " data=", data, " ("+typeof(data)+")");