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 line
2.5 KiB
1 line
2.5 KiB
2 years ago
|
{"ast":null,"code":"import { createElementObject, createLayerComponent, extendContext, updateMediaOverlay } from '@react-leaflet/core';\nimport { ImageOverlay as LeafletImageOverlay } from 'leaflet';\nexport const ImageOverlay = createLayerComponent(function createImageOveraly(_ref, ctx) {\n let {\n bounds,\n url,\n ...options\n } = _ref;\n const overlay = new LeafletImageOverlay(url, bounds, options);\n return createElementObject(overlay, extendContext(ctx, {\n overlayContainer: overlay\n }));\n}, function updateImageOverlay(overlay, props, prevProps) {\n updateMediaOverlay(overlay, props, prevProps);\n\n if (props.url !== prevProps.url) {\n overlay.setUrl(props.url);\n }\n});","map":{"version":3,"names":["createElementObject","createLayerComponent","extendContext","updateMediaOverlay","ImageOverlay","LeafletImageOverlay","createImageOveraly","ctx","bounds","url","options","overlay","overlayContainer","updateImageOverlay","props","prevProps","setUrl"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/react-leaflet/lib/ImageOverlay.js"],"sourcesContent":["import { createElementObject, createLayerComponent, extendContext, updateMediaOverlay } from '@react-leaflet/core';\nimport { ImageOverlay as LeafletImageOverlay } from 'leaflet';\nexport const ImageOverlay = createLayerComponent(function createImageOveraly({ bounds , url , ...options }, ctx) {\n const overlay = new LeafletImageOverlay(url, bounds, options);\n return createElementObject(overlay, extendContext(ctx, {\n overlayContainer: overlay\n }));\n}, function updateImageOverlay(overlay, props, prevProps) {\n updateMediaOverlay(overlay, props, prevProps);\n if (props.url !== prevProps.url) {\n overlay.setUrl(props.url);\n }\n});\n"],"mappings":"AAAA,SAASA,mBAAT,EAA8BC,oBAA9B,EAAoDC,aAApD,EAAmEC,kBAAnE,QAA6F,qBAA7F;AACA,SAASC,YAAY,IAAIC,mBAAzB,QAAoD,SAApD;AACA,OAAO,MAAMD,YAAY,GAAGH,oBAAoB,CAAC,SAASK,kBAAT,OAA2DC,GAA3D,EAAgE;EAAA,IAApC;IAAEC,MAAF;IAAWC,GAAX;IAAiB,GAAGC;EAApB,CAAoC;EAC7G,MAAMC,OAAO,GAAG,IAAIN,mBAAJ,CAAwBI,GAAxB,EAA6BD,MAA7B,EAAqCE,OAArC,CAAhB;EACA,OAAOV,mBAAmB,CAACW,OAAD,EAAUT,aAAa,CAACK,GAAD,EAAM;IACnDK,gBAAgB,EAAED;EADiC,CAAN,CAAvB,CAA1B;AAGH,CAL+C,EAK7C,SAASE,kBAAT,CAA4BF,OAA5B,EAAqCG,KAArC,EAA4CC,SAA5C,EAAuD;EACtDZ,kBAAkB,CAACQ,OAAD,EAAUG,KAAV,EAAiBC,SAAjB,CAAlB;;EACA,IAAID,KAAK,CAACL,GAAN,KAAcM,SAAS,CAACN,GAA5B,EAAiC;IAC7BE,OAAO,CAACK,MAAR,CAAeF,KAAK,CAACL,GAArB;EACH;AACJ,CAV+C,CAAzC"},"metadata":{},"sourceType":"module"}
|