diff --git a/scripts/renderer.js b/scripts/renderer.js index a7252e6..2f39399 100644 --- a/scripts/renderer.js +++ b/scripts/renderer.js @@ -135,7 +135,7 @@ const addExteriorShadow = (container, config, geometry) => { const poly = geometry.getGeometryN(i); addExteriorShadowForPoly(container, config, poly); } - } else if (state.geometry instanceof jsts.geom.Polygon) { + } else if (geometry instanceof jsts.geom.Polygon) { addExteriorShadowForPoly(container, config, geometry); } }