diff --git a/src/actions/getVectorLayers.js b/src/actions/getVectorLayers.js index cf1ef45b..c7aaad4e 100755 --- a/src/actions/getVectorLayers.js +++ b/src/actions/getVectorLayers.js @@ -65,19 +65,19 @@ export default async function getVectorLayers(layer_store, layer_name, setVisibl if (layer_store === "panchayat_boundaries") { wmsLayer.setStyle(PanchayatBoundariesStyle); - } - - wmsLayer.setStyle((feature) => { - return new Style({ - stroke: new Stroke({ - color: "black", - width: 1.2, - }), - fill: new Fill({ - color: "rgba(0, 0, 255, 0.25)", - }), + } else { + wmsLayer.setStyle(() => { + return new Style({ + stroke: new Stroke({ + color: "black", + width: 1.2, + }), + fill: new Fill({ + color: "rgba(0, 0, 255, 0.25)", + }), + }); }); - }); + } return wmsLayer; } \ No newline at end of file