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.4 KiB

{"ast":null,"code":"import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';\nimport { GeoJSON as LeafletGeoJSON } from 'leaflet';\nexport const GeoJSON = createPathComponent(function createGeoJSON(_ref, ctx) {\n let {\n data,\n ...options\n } = _ref;\n const geoJSON = new LeafletGeoJSON(data, options);\n return createElementObject(geoJSON, extendContext(ctx, {\n overlayContainer: geoJSON\n }));\n}, function updateGeoJSON(layer, props, prevProps) {\n if (props.style !== prevProps.style) {\n if (props.style == null) {\n layer.resetStyle();\n } else {\n layer.setStyle(props.style);\n }\n }\n});","map":{"version":3,"names":["createElementObject","createPathComponent","extendContext","GeoJSON","LeafletGeoJSON","createGeoJSON","ctx","data","options","geoJSON","overlayContainer","updateGeoJSON","layer","props","prevProps","style","resetStyle","setStyle"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/react-leaflet/lib/GeoJSON.js"],"sourcesContent":["import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';\nimport { GeoJSON as LeafletGeoJSON } from 'leaflet';\nexport const GeoJSON = createPathComponent(function createGeoJSON({ data , ...options }, ctx) {\n const geoJSON = new LeafletGeoJSON(data, options);\n return createElementObject(geoJSON, extendContext(ctx, {\n overlayContainer: geoJSON\n }));\n}, function updateGeoJSON(layer, props, prevProps) {\n if (props.style !== prevProps.style) {\n if (props.style == null) {\n layer.resetStyle();\n } else {\n layer.setStyle(props.style);\n }\n }\n});\n"],"mappings":"AAAA,SAASA,mBAAT,EAA8BC,mBAA9B,EAAmDC,aAAnD,QAAwE,qBAAxE;AACA,SAASC,OAAO,IAAIC,cAApB,QAA0C,SAA1C;AACA,OAAO,MAAMD,OAAO,GAAGF,mBAAmB,CAAC,SAASI,aAAT,OAA8CC,GAA9C,EAAmD;EAAA,IAA5B;IAAEC,IAAF;IAAS,GAAGC;EAAZ,CAA4B;EAC1F,MAAMC,OAAO,GAAG,IAAIL,cAAJ,CAAmBG,IAAnB,EAAyBC,OAAzB,CAAhB;EACA,OAAOR,mBAAmB,CAACS,OAAD,EAAUP,aAAa,CAACI,GAAD,EAAM;IACnDI,gBAAgB,EAAED;EADiC,CAAN,CAAvB,CAA1B;AAGH,CALyC,EAKvC,SAASE,aAAT,CAAuBC,KAAvB,EAA8BC,KAA9B,EAAqCC,SAArC,EAAgD;EAC/C,IAAID,KAAK,CAACE,KAAN,KAAgBD,SAAS,CAACC,KAA9B,EAAqC;IACjC,IAAIF,KAAK,CAACE,KAAN,IAAe,IAAnB,EAAyB;MACrBH,KAAK,CAACI,UAAN;IACH,CAFD,MAEO;MACHJ,KAAK,CAACK,QAAN,CAAeJ,KAAK,CAACE,KAArB;IACH;EACJ;AACJ,CAbyC,CAAnC"},"metadata":{},"sourceType":"module"}