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 { Polygon as LeafletPolygon } from 'leaflet';\nexport const Polygon = createPathComponent(function createPolygon(_ref, ctx) {\n let {\n positions,\n ...options\n } = _ref;\n const polygon = new LeafletPolygon(positions, options);\n return createElementObject(polygon, extendContext(ctx, {\n overlayContainer: polygon\n }));\n}, function updatePolygon(layer, props, prevProps) {\n if (props.positions !== prevProps.positions) {\n layer.setLatLngs(props.positions);\n }\n});","map":{"version":3,"names":["createElementObject","createPathComponent","extendContext","Polygon","LeafletPolygon","createPolygon","ctx","positions","options","polygon","overlayContainer","updatePolygon","layer","props","prevProps","setLatLngs"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/react-leaflet/lib/Polygon.js"],"sourcesContent":["import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';\nimport { Polygon as LeafletPolygon } from 'leaflet';\nexport const Polygon = createPathComponent(function createPolygon({ positions , ...options }, ctx) {\n const polygon = new LeafletPolygon(positions, options);\n return createElementObject(polygon, extendContext(ctx, {\n overlayContainer: polygon\n }));\n}, function updatePolygon(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,OAAO,IAAIC,cAApB,QAA0C,SAA1C;AACA,OAAO,MAAMD,OAAO,GAAGF,mBAAmB,CAAC,SAASI,aAAT,OAAmDC,GAAnD,EAAwD;EAAA,IAAjC;IAAEC,SAAF;IAAc,GAAGC;EAAjB,CAAiC;EAC/F,MAAMC,OAAO,GAAG,IAAIL,cAAJ,CAAmBG,SAAnB,EAA8BC,OAA9B,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,CAACN,SAAN,KAAoBO,SAAS,CAACP,SAAlC,EAA6C;IACzCK,KAAK,CAACG,UAAN,CAAiBF,KAAK,CAACN,SAAvB;EACH;AACJ,CATyC,CAAnC"},"metadata":{},"sourceType":"module"} |