You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.3 KiB
1 lines
1.3 KiB
{"ast":null,"code":"export function updateGridLayer(layer, props, prevProps) {\n const {\n opacity,\n zIndex\n } = props;\n\n if (opacity != null && opacity !== prevProps.opacity) {\n layer.setOpacity(opacity);\n }\n\n if (zIndex != null && zIndex !== prevProps.zIndex) {\n layer.setZIndex(zIndex);\n }\n}","map":{"version":3,"names":["updateGridLayer","layer","props","prevProps","opacity","zIndex","setOpacity","setZIndex"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/@react-leaflet/core/lib/grid-layer.js"],"sourcesContent":["export function updateGridLayer(layer, props, prevProps) {\n const { opacity , zIndex } = props;\n if (opacity != null && opacity !== prevProps.opacity) {\n layer.setOpacity(opacity);\n }\n if (zIndex != null && zIndex !== prevProps.zIndex) {\n layer.setZIndex(zIndex);\n }\n}\n"],"mappings":"AAAA,OAAO,SAASA,eAAT,CAAyBC,KAAzB,EAAgCC,KAAhC,EAAuCC,SAAvC,EAAkD;EACrD,MAAM;IAAEC,OAAF;IAAYC;EAAZ,IAAwBH,KAA9B;;EACA,IAAIE,OAAO,IAAI,IAAX,IAAmBA,OAAO,KAAKD,SAAS,CAACC,OAA7C,EAAsD;IAClDH,KAAK,CAACK,UAAN,CAAiBF,OAAjB;EACH;;EACD,IAAIC,MAAM,IAAI,IAAV,IAAkBA,MAAM,KAAKF,SAAS,CAACE,MAA3C,EAAmD;IAC/CJ,KAAK,CAACM,SAAN,CAAgBF,MAAhB;EACH;AACJ"},"metadata":{},"sourceType":"module"} |