Ignore:
Timestamp:
May 13, 2011, 1:31:50 PM (14 years ago)
Author:
dennisw
Message:

Displays a list of nodes. Next to fix: boundaries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/website/static/heatmap.js

    r9196 r9197  
    3939        map.addLayer(layerHeatmap);
    4040       
    41         var lon   = 4.48907;
    42         var lat   = 52.158431;
     41        var lon   = 4.48319;
     42        var lat   = 52.14068;
    4343        var zoom  = 16;
    4444
     
    6060  nodelist.onreadystatechange=function(){
    6161    if (nodelist.readyState==4 && nodelist.status==200){
    62       txt=nodelist.responseText;
    63       document.getElementById('nodelist').innerHTML=txt;
     62      json=eval('(' + nodelist.responseText + ')');
     63      var list = '<br>';
     64      for (var i=0; i<json.length; i++){
     65        list += json[i].fields.ssid + '<br>';
     66      }
     67      document.getElementById('nodelist').innerHTML=list;
    6468    }
    6569  }
Note: See TracChangeset for help on using the changeset viewer.