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

Change radius and max value callback function.

No need to re-do an HTTP call to apply those display parameters. Just draw again the lightmap.
parent 5cb56085
......@@ -118,12 +118,12 @@ window.onload = function() {
if ( teamSelector !== undefined && teamSelector !== "undefined" && teamSelector !== "" ){
path = path + "?team=" + teamSelector;
}
console.log("path: ",path);
console.log("HTTP call to ",path);
xhttp.open("GET", path, true);
xhttp.send();
}
function populateMap(measures) {
function populateMap() {
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;
generate();
populateMap();
};
$("maxlumSelector").onchange = function(){
value = document.getElementById("maxlumSelector").value;
maxLuminosityValue = value;
generate();
populateMap();
};
};
......
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