diff --git a/Panels/Layer.js b/Panels/Layer.js index 44e067063..1877a5ecc 100644 --- a/Panels/Layer.js +++ b/Panels/Layer.js @@ -170,7 +170,7 @@ function newLayer () { 'Plotter Module->Plotter->' + 'Shapes->' + 'Chart Points->Point->Point Formula->' + - 'Polygon->Polygon Body->Style->Style Condition->Style->' + + 'Polygon->Polygon Condition->Polygon Body->Style->Style Condition->Style->' + 'Polygon Border->Style->Style Condition->Style->' + 'Polygon Vertex->Point->' + 'Plotter Panel->Javascript Code->Panel Data->Data Formula->' diff --git a/Plotter.js b/Plotter.js index bba22925f..c17556477 100644 --- a/Plotter.js +++ b/Plotter.js @@ -598,6 +598,12 @@ function newPlotter () { for (let j = 0; j < productDefinition.referenceParent.shapes.polygons.length; j++) { let polygon = productDefinition.referenceParent.shapes.polygons[j] + /* We will check if we need to plot this Polygon or not. */ + if (polygon.polygonCondition !== undefined) { + let mustPlot = eval(polygon.polygonCondition.code) + if (mustPlot !== true) { continue } + } + let calculatedStyle /* Finding out the fill style */