Commit f549cf52 authored by VANDAELE Julien's avatar VANDAELE Julien
Browse files

refactor map drawing function name

parent e87b3838
......@@ -110,7 +110,7 @@ window.onload = function() {
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
measures = JSON.parse(xhttp.responseText);
populateMap(measures);
drawMap();
}
};
var path = "measure";
......@@ -123,7 +123,7 @@ window.onload = function() {
xhttp.send();
}
function populateMap() {
function drawMap() {
var max = maxLuminosityValue;
var min = 0
var t = [];
......@@ -154,12 +154,12 @@ window.onload = function() {
$("radiusSlider").onchange = function(){
value = document.getElementById("radiusSlider").value;
radius = Math.max(Math.floor(height/testbedheight),Math.floor(width/testbedwidth))*value;
populateMap();
drawMap();
};
$("maxlumSelector").onchange = function(){
value = document.getElementById("maxlumSelector").value;
maxLuminosityValue = value;
populateMap();
drawMap();
};
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment