Changes between Version 62 and Version 63 of ZooWebSite/Demo/GdalProfileJs
- Timestamp:
- Jul 25, 2015, 11:25:07 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWebSite/Demo/GdalProfileJs
v62 v63 244 244 if(request.readyState == OpenLayers.Request.XMLHttpRequest.DONE) { 245 245 console.log(request.responseText); 246 var reg=new RegExp("[;]", "g"); 247 var tmp=request.responseText.split(reg); 246 var data=JSON.parse(request.responseText); 247 console.log(data); 248 249 //var reg=new RegExp("[;]", "g"); 250 //var tmp=request.responseText.split(reg); 251 var tmp=data.coordinates; 248 252 var idxs=new Array(); 249 253 var values= new Array(); 250 254 points=new Array(); 251 255 for(var i=0;i<tmp.length;i++){ 252 var reg1=new RegExp("[,]", "g");253 var tmpString=tmp[i]+"";254 var tmp1=tmp String.split(reg1);256 //var reg1=new RegExp("[,]", "g"); 257 //var tmpString=tmp[i]+""; 258 var tmp1=tmp[i];//tmpString.split(reg1); 255 259 if(tmp1[0] && tmp1[1] && tmp1[2]){ 256 260 idxs[i]=i;