Skip to content
Snippets Groups Projects
Commit d881ca5d authored by mcmlxxix's avatar mcmlxxix
Browse files

fix typo in Map.xSection() and Map.ySection().

remove debug logging.
parent 986dfa6c
Branches
Tags
No related merge requests found
......@@ -213,9 +213,9 @@ function Map(width,height) {
var c = b/this.range;
var d = c*(height-2);
log(format("a:%f,b:%f,c:%f,d:%f",a,b,c,d));
//log(format("a:%f,b:%f,c:%f,d:%f",a,b,c,d));
var i=0;
for(;i<t;i++)
for(;i<d;i++)
section[x].unshift(1);
for(;i<height;i++)
section[x].unshift(0);
......@@ -238,9 +238,9 @@ function Map(width,height) {
var c = b/this.range;
var d = c*(height-2);
log(format("a:%f,b:%f,c:%f,d:%f",a,b,c,d));
//log(format("a:%f,b:%f,c:%f,d:%f",a,b,c,d));
var i=0;
for(;i<t;i++)
for(;i<d;i++)
section[y].unshift(1);
for(;i<height;i++)
section[y].unshift(0);
......@@ -385,6 +385,8 @@ function Map(width,height) {
mean = total / (map[0].length * map.length);
range = max - min;
//log(format("min:%f,max:%f,mean:%f,range:%f",min,max,mean,range));
properties.min = min;
properties.max = max;
properties.mean = mean;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment