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
2.5 KiB

{"ast":null,"code":"import { createElementObject, createTileLayerComponent, updateGridLayer, withPane } from '@react-leaflet/core';\nimport { TileLayer } from 'leaflet';\nexport const WMSTileLayer = createTileLayerComponent(function createWMSTileLayer(_ref, context) {\n let {\n params = {},\n url,\n ...options\n } = _ref;\n const layer = new TileLayer.WMS(url, { ...params,\n ...withPane(options, context)\n });\n return createElementObject(layer, context);\n}, function updateWMSTileLayer(layer, props, prevProps) {\n updateGridLayer(layer, props, prevProps);\n\n if (props.params != null && props.params !== prevProps.params) {\n layer.setParams(props.params);\n }\n});","map":{"version":3,"names":["createElementObject","createTileLayerComponent","updateGridLayer","withPane","TileLayer","WMSTileLayer","createWMSTileLayer","context","params","url","options","layer","WMS","updateWMSTileLayer","props","prevProps","setParams"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/react-leaflet/lib/WMSTileLayer.js"],"sourcesContent":["import { createElementObject, createTileLayerComponent, updateGridLayer, withPane } from '@react-leaflet/core';\nimport { TileLayer } from 'leaflet';\nexport const WMSTileLayer = createTileLayerComponent(function createWMSTileLayer({ params ={} , url , ...options }, context) {\n const layer = new TileLayer.WMS(url, {\n ...params,\n ...withPane(options, context)\n });\n return createElementObject(layer, context);\n}, function updateWMSTileLayer(layer, props, prevProps) {\n updateGridLayer(layer, props, prevProps);\n if (props.params != null && props.params !== prevProps.params) {\n layer.setParams(props.params);\n }\n});\n"],"mappings":"AAAA,SAASA,mBAAT,EAA8BC,wBAA9B,EAAwDC,eAAxD,EAAyEC,QAAzE,QAAyF,qBAAzF;AACA,SAASC,SAAT,QAA0B,SAA1B;AACA,OAAO,MAAMC,YAAY,GAAGJ,wBAAwB,CAAC,SAASK,kBAAT,OAA+DC,OAA/D,EAAwE;EAAA,IAA5C;IAAEC,MAAM,GAAE,EAAV;IAAeC,GAAf;IAAqB,GAAGC;EAAxB,CAA4C;EACzH,MAAMC,KAAK,GAAG,IAAIP,SAAS,CAACQ,GAAd,CAAkBH,GAAlB,EAAuB,EACjC,GAAGD,MAD8B;IAEjC,GAAGL,QAAQ,CAACO,OAAD,EAAUH,OAAV;EAFsB,CAAvB,CAAd;EAIA,OAAOP,mBAAmB,CAACW,KAAD,EAAQJ,OAAR,CAA1B;AACH,CANmD,EAMjD,SAASM,kBAAT,CAA4BF,KAA5B,EAAmCG,KAAnC,EAA0CC,SAA1C,EAAqD;EACpDb,eAAe,CAACS,KAAD,EAAQG,KAAR,EAAeC,SAAf,CAAf;;EACA,IAAID,KAAK,CAACN,MAAN,IAAgB,IAAhB,IAAwBM,KAAK,CAACN,MAAN,KAAiBO,SAAS,CAACP,MAAvD,EAA+D;IAC3DG,KAAK,CAACK,SAAN,CAAgBF,KAAK,CAACN,MAAtB;EACH;AACJ,CAXmD,CAA7C"},"metadata":{},"sourceType":"module"}