From d3a61a37c3e91284bea83b8ce687734f9b4b856e Mon Sep 17 00:00:00 2001 From: apple Date: Fri, 20 Mar 2026 23:45:30 +0530 Subject: [PATCH] fix: preserve panchayat_boundaries style Made-with: Cursor --- src/actions/getVectorLayers.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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