Mercurial > hg > ChinaGisRestApi
comparison gis_gui/blocks/map.js @ 159:3dc6be23494c
map layers with custom colors
author | fknauft |
---|---|
date | Mon, 07 Feb 2011 15:36:10 +0100 |
parents | 825a92d0ab10 |
children | 55b3dce54b42 0a1dee507612 |
comparison
equal
deleted
inserted
replaced
158:1897ef5479f4 | 159:3dc6be23494c |
---|---|
157 var params = layerList[i].layer; | 157 var params = layerList[i].layer; |
158 var paramstr = "format=KML_URL"; | 158 var paramstr = "format=KML_URL"; |
159 if (params.position_field && params.position_field != "Default") { | 159 if (params.position_field && params.position_field != "Default") { |
160 paramstr += "&gis_id_field="+params.position_field; | 160 paramstr += "&gis_id_field="+params.position_field; |
161 } | 161 } |
162 if (params.color_field != "Default") { | |
163 paramstr += "&color_field="+params.color_field; | |
164 } | |
165 if (params.geometry_field != "Default") { | |
166 paramstr += "&geometry_field="+params.geometry_field; | |
167 } | |
162 if (params.connect_line) { | 168 if (params.connect_line) { |
163 paramstr += "&connect_line="+params.connect_line; | 169 paramstr += "&connect_line="+params.connect_line; |
164 } | 170 } |
165 var layerurl = "../db/RESTdb/db/public/" + escape(params.table) + "?" + paramstr; | 171 var layerurl = "../db/RESTdb/db/public/" + escape(params.table) + "?" + paramstr; |
166 jQuery.get(layerurl, function (data, textStatus, XMLHttpRequest) { | 172 jQuery.get(layerurl, function (data, textStatus, XMLHttpRequest) { |