1 line
2.6 KiB
JSON
1 line
2.6 KiB
JSON
{"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 eventHandlers: _eh,\n params = {},\n url,\n ...options\n } = _ref;\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});","map":{"version":3,"names":["createElementObject","createTileLayerComponent","updateGridLayer","withPane","TileLayer","WMSTileLayer","createWMSTileLayer","_ref","context","eventHandlers","_eh","params","url","options","layer","WMS","updateWMSTileLayer","props","prevProps","setParams"],"sources":["/home/m3mo/Desktop/temparea/solarbank/frontend/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({ eventHandlers: _eh , 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,mBAAmB,EAAEC,wBAAwB,EAAEC,eAAe,EAAEC,QAAQ,QAAQ,qBAAqB;AAC9G,SAASC,SAAS,QAAQ,SAAS;AACnC,OAAO,MAAMC,YAAY,GAAGJ,wBAAwB,CAAC,SAASK,kBAAkBA,CAAAC,IAAA,EAAyDC,OAAO,EAAE;EAAA,IAAjE;IAAEC,aAAa,EAAEC,GAAG;IAAGC,MAAM,GAAE,CAAC,CAAC;IAAGC,GAAG;IAAG,GAAGC;EAAQ,CAAC,GAAAN,IAAA;EACnI,MAAMO,KAAK,GAAG,IAAIV,SAAS,CAACW,GAAG,CAACH,GAAG,EAAE;IACjC,GAAGD,MAAM;IACT,GAAGR,QAAQ,CAACU,OAAO,EAAEL,OAAO;EAChC,CAAC,CAAC;EACF,OAAOR,mBAAmB,CAACc,KAAK,EAAEN,OAAO,CAAC;AAC9C,CAAC,EAAE,SAASQ,kBAAkBA,CAACF,KAAK,EAAEG,KAAK,EAAEC,SAAS,EAAE;EACpDhB,eAAe,CAACY,KAAK,EAAEG,KAAK,EAAEC,SAAS,CAAC;EACxC,IAAID,KAAK,CAACN,MAAM,IAAI,IAAI,IAAIM,KAAK,CAACN,MAAM,KAAKO,SAAS,CAACP,MAAM,EAAE;IAC3DG,KAAK,CAACK,SAAS,CAACF,KAAK,CAACN,MAAM,CAAC;EACjC;AACJ,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |