diff --git a/src/sparqlunicorn_ontdoc/resources/html/default/js/startscripts.js b/src/sparqlunicorn_ontdoc/resources/html/default/js/startscripts.js index e3a8596..bc6b85f 100644 --- a/src/sparqlunicorn_ontdoc/resources/html/default/js/startscripts.js +++ b/src/sparqlunicorn_ontdoc/resources/html/default/js/startscripts.js @@ -1622,7 +1622,7 @@ function restyleLayer(propertyName,geojsonLayer) { //geojsonLayer.eachLayer(function(featureInstanceLayer) { propertyValue = geojsonLayer["features"][0]["properties"][propertyName]; rangesByAttribute=createColorRangeByAttribute(propertyName,geojsonLayer) - rangestoLegendHTML(rangesByAttribute) + document.getElementById("legend").innerHTML=rangestoLegendHTML(rangesByAttribute) // Your function that determines a fill color for a particular // property name and value. console.log(layerr)