Mercurial > hg > ChinaGisRestApi
comparison gis_gui/blocks/map.js @ 235:ed0cb46fb936
show line and polygon-layer
author | fknauft |
---|---|
date | Mon, 05 Sep 2011 11:37:10 +0200 |
parents | 6e6e78adb447 |
children | 52aa589f4c4d |
comparison
equal
deleted
inserted
replaced
234:6e6e78adb447 | 235:ed0cb46fb936 |
---|---|
184 var layerurl = "../db/RESTdb/db/public/" + escape(params.table) + "?" + paramstr; | 184 var layerurl = "../db/RESTdb/db/public/" + escape(params.table) + "?" + paramstr; |
185 jQuery.get(layerurl, function (data, textStatus, XMLHttpRequest) { | 185 jQuery.get(layerurl, function (data, textStatus, XMLHttpRequest) { |
186 // function after load kml url finished | 186 // function after load kml url finished |
187 console.debug("kml url loaded! this=", this ); | 187 console.debug("kml url loaded! this=", this ); |
188 console.debug(" data=", data ); | 188 console.debug(" data=", data ); |
189 console debug(" data type="+typeof(data)); | 189 console debug(" data type=", typeof(data)); |
190 if (typeof(data) == "string") { | 190 if (typeof(data) == "string") { |
191 var kmlURL = data; | 191 var kmlURL = data; |
192 } else { | 192 } else { |
193 // broken, what now? | 193 // broken, what now? |
194 return; | 194 return; |