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.2 KiB
1 lines
2.2 KiB
{"ast":null,"code":"import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';\nimport { Polyline as LeafletPolyline } from 'leaflet';\nexport const Polyline = createPathComponent(function createPolyline(_ref, ctx) {\n let {\n positions,\n ...options\n } = _ref;\n const polyline = new LeafletPolyline(positions, options);\n return createElementObject(polyline, extendContext(ctx, {\n overlayContainer: polyline\n }));\n}, function updatePolyline(layer, props, prevProps) {\n if (props.positions !== prevProps.positions) {\n layer.setLatLngs(props.positions);\n }\n});","map":{"version":3,"names":["createElementObject","createPathComponent","extendContext","Polyline","LeafletPolyline","createPolyline","ctx","positions","options","polyline","overlayContainer","updatePolyline","layer","props","prevProps","setLatLngs"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/react-leaflet/lib/Polyline.js"],"sourcesContent":["import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';\nimport { Polyline as LeafletPolyline } from 'leaflet';\nexport const Polyline = createPathComponent(function createPolyline({ positions , ...options }, ctx) {\n const polyline = new LeafletPolyline(positions, options);\n return createElementObject(polyline, extendContext(ctx, {\n overlayContainer: polyline\n }));\n}, function updatePolyline(layer, props, prevProps) {\n if (props.positions !== prevProps.positions) {\n layer.setLatLngs(props.positions);\n }\n});\n"],"mappings":"AAAA,SAASA,mBAAT,EAA8BC,mBAA9B,EAAmDC,aAAnD,QAAwE,qBAAxE;AACA,SAASC,QAAQ,IAAIC,eAArB,QAA4C,SAA5C;AACA,OAAO,MAAMD,QAAQ,GAAGF,mBAAmB,CAAC,SAASI,cAAT,OAAoDC,GAApD,EAAyD;EAAA,IAAjC;IAAEC,SAAF;IAAc,GAAGC;EAAjB,CAAiC;EACjG,MAAMC,QAAQ,GAAG,IAAIL,eAAJ,CAAoBG,SAApB,EAA+BC,OAA/B,CAAjB;EACA,OAAOR,mBAAmB,CAACS,QAAD,EAAWP,aAAa,CAACI,GAAD,EAAM;IACpDI,gBAAgB,EAAED;EADkC,CAAN,CAAxB,CAA1B;AAGH,CAL0C,EAKxC,SAASE,cAAT,CAAwBC,KAAxB,EAA+BC,KAA/B,EAAsCC,SAAtC,EAAiD;EAChD,IAAID,KAAK,CAACN,SAAN,KAAoBO,SAAS,CAACP,SAAlC,EAA6C;IACzCK,KAAK,CAACG,UAAN,CAAiBF,KAAK,CAACN,SAAvB;EACH;AACJ,CAT0C,CAApC"},"metadata":{},"sourceType":"module"} |