Skip to content

Commit 9d30979

Browse files
committed
fixes
1 parent 429cfa1 commit 9d30979

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,6 +1622,7 @@ function restyleLayer(propertyName,geojsonLayer) {
16221622
//geojsonLayer.eachLayer(function(featureInstanceLayer) {
16231623
propertyValue = geojsonLayer["features"][0]["properties"][propertyName];
16241624
rangesByAttribute=createColorRangeByAttribute(propertyName,geojsonLayer)
1625+
console.log(rangesByAttribute)
16251626
document.getElementById("legend").innerHTML=rangestoLegendHTML(rangesByAttribute)
16261627
// Your function that determines a fill color for a particular
16271628
// property name and value.
@@ -1641,7 +1642,7 @@ function rangestoLegendHTML(rangesByAttribute){
16411642
for(rang in rangesByAttribute){
16421643
result+="<tr><td><span style=\"width: 20px;height: 20px;border: 1px solid rgba(0, 0, 0, .2);background-color:"+rangesByAttribute[rang]["color"]+"\"></span>"
16431644
if("min" in rangesByAttribute[rang] && "max" in rangesByAttribute[rang]){
1644-
result+=rangesByAttribute[rang]["min"]+" - "+rangesByAttribute[rang]["min"]
1645+
result+=rangesByAttribute[rang]["min"]+" - "+rangesByAttribute[rang]["max"]
16451646
}else{
16461647
result+=rangesByAttribute[rang]["label"]
16471648
}

0 commit comments

Comments
 (0)