Skip to content

Commit cdeee42

Browse files
committed
fixes
1 parent 9d30979 commit cdeee42

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sparqlunicorn_ontdoc/resources/html/default/js/startscripts.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,8 +1639,11 @@ function restyleLayer(propertyName,geojsonLayer) {
16391639

16401640
function rangestoLegendHTML(rangesByAttribute){
16411641
result="<table>"
1642+
console.log(rangesByAttribute)
16421643
for(rang in rangesByAttribute){
1644+
console.log(rang)
16431645
result+="<tr><td><span style=\"width: 20px;height: 20px;border: 1px solid rgba(0, 0, 0, .2);background-color:"+rangesByAttribute[rang]["color"]+"\"></span>"
1646+
console.log(rangesByAttribute[rang])
16441647
if("min" in rangesByAttribute[rang] && "max" in rangesByAttribute[rang]){
16451648
result+=rangesByAttribute[rang]["min"]+" - "+rangesByAttribute[rang]["max"]
16461649
}else{
@@ -1723,7 +1726,7 @@ function createColorRangeByAttribute(propertyName,geojsonlayer){
17231726
stepcounter=0
17241727
while(curstep<maxamount){
17251728
curstepstr=(curstep+"")
1726-
rangesByAttribute[propertyName].push({"min":curstep,"max":curstep+myrangesteps,"label":"["+curstep+"-"+(curstep+myrangesteps)+"]","color":colors[stepcounter%12]})
1729+
rangesByAttribute[propertyName].push({"min":curstep,"max":curstep+myrangesteps,"label":"["+curstep+" - "+(curstep+myrangesteps)+"]","color":colors[stepcounter%12]})
17271730
curstep+=myrangesteps
17281731
stepcounter+=1
17291732
}

0 commit comments

Comments
 (0)